ZeroHour
oss-securitypublished ()ingested

Cpython: [CVE-2026-82049] tarfile extraction filters allow file modification and content disclosure via hard link to symlink

mediumVulnerabilityimportance 35CVE-2026-82049
AI summary · glm-5.3

Python discloses CVE-2026-82049: tarfile extraction filters can be bypassed via hard links to symlinks, enabling file modification and content disclosure.

Stan Ulbrych disclosed CVE-2026-82049 on the Python security-announce list, forwarded to oss-security by Alan Coopersmith. The flaw affects CPython's tarfile extraction filters, which can allow file modification and content disclosure when archives contain a hard link to a symlink. Extraction-filter misuse can therefore bypass intended protections during archive unpacking.

  • CVE-2026-82049 affects CPython tarfile extraction filters
  • Hard links to symlinks allow file modification and content disclosure during extraction
  • Disclosed via Python security-announce and forwarded to oss-security

Vulnerabilities mentionedAll →

CVEVulnerabilityCVSSEPSSFlagsAffectedExposurePublished
CVE-2026-82049
Python tarfile extraction filter bypass via hard link to symlink (CPython ≤3.13)

A link-following flaw (CWE-59) in CPython's tarfile module lets a crafted tar archive containing a hard link that points to a symbolic link defeat the 'data' and 'tar' extraction filters introduced to harden tarfile. If an application extracts such an attacker-supplied archive, extraction can follow the link chain and change the permissions or modification time of a file outside the intended destination directory, or copy the contents of that outside file into the extracted tree (information disclosure). Exploitation requires a victim or application to extract a malicious archive (CVSS 4.0 lists user interaction), so the practical risk is concentrated in software that unpacks untrusted tars: package mirrors, build/CI tooling, backup and restore agents, and file-upload pipelines. All CPython releases 3.13 and earlier are affected. No public proof of concept or in-the-wild exploitation is known at this time.

Do: Upgrade to the latest Python maintenance release for each affected branch as soon as the fix is published, and check your Linux distribution or vendor (including macOS system Python) for patched packages. Audit first- and third-party code that calls tarfile.extract/extractall on user- or network-supplied archives and treat those inputs as untrusted in the meantime. As an interim mitigation, pre-scan archive members and reject or neutralize hard links whose target resolves to a symlink, and run extraction in a sandbox or with a low-privilege account to limit blast radius.

8.4
  • Python Software Foundation CPython (Python) 3.13 and earlier (including the 3.13.x, 3.12.x, 3.11.x and older series; fixed only in releases containing the tarfile filter patch)
massPotentially >100 million systems, since Python 3 is preinstalled on most Linux distributions and macOS, though only the subset running code that extracts…
Full article

Posted by Alan Coopersmith on Sep 14 -------- Forwarded Message -------- Subject: [Security-announce][CVE-2026-82049] tarfile extraction filters allow file modification and content disclosure via hard link to symlink Date: Mon, 14 Sep 2026 17:59:38 +0100 From: Stan Ulbrych via Security-announce Reply-To: security-sig () python org To: security-announce () python org CC: Stan Ulbrych ...

This source does not provide full text. Read it at seclists.org.