CVE-2026-145667: pyLoad before 0.5.0b3.dev102 Privilege Escalation via Tar Setuid Bit Preservation
pyLoad (pyload-ng) before 0.5.0b3.dev102 preserves setuid/setgid mode bits on extracted regular files because UnTar.safeextractall calls tarfile.extractall without a filter argument, which defaults to fullytrusted on Python 3.9-3.13. Attackers can deliver a crafted tar download that ExtractArchive extracts with setuid intact, leaving a setuid-root binary on root-run instances that enables local privilege escalation.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 0.5.0b3.dev102
Event History
Frequently Asked Questions
Which deployments are most exposed?
Instances running pyLoad as root are directly exposed, because extraction can leave behind a setuid-root binary. The issue applies to affected pyLoad versions on Python 3.9 through 3.13.
What does an attacker need to exploit this?
An attacker needs the ability to deliver a crafted tar download that pyLoad processes through ExtractArchive. Exploitation then requires local execution of the extracted setuid binary to escalate privileges.
Are default tar extraction settings affected?
Yes. The vulnerable code calls tarfile.extractall without a filter argument, which defaults to fully_trusted on Python 3.9 through 3.13 and preserves setuid and setgid mode bits on extracted regular files.