Vulnerability · Published Sep 11, 2026 · Assigned by PSF

CVE-2026-87910tarfile hardlink fallback ignores custom extraction filter rejection via None

Medium 5.7

In plain English

A medium-severity path traversal in CPython from Python Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 49% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)5.7Medium
Exploit odds (30 days)0.6%top 50.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

When tarfile extracts a link on a system that doesn't support links, it falls back to extracting a member from the archive. In this case, the filter function is run twice: once for the extracted member, and once with name set to the location of the link. For one of the calls, the return value was ignored. Instead, the member should be skipped if either call returns None.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.21python33.12.15-r0ALPINE-CVE-2026-87910
Alpine:v3.22python33.12.15-r0ALPINE-CVE-2026-87910
Alpine:v3.23python33.12.15-r0ALPINE-CVE-2026-87910
Debian:13pypy3no fix listedDEBIAN-CVE-2026-87910
Debian:14pypy38.0.1+dfsg-1DEBIAN-CVE-2026-87910
Debian:13python3.13no fix listedDEBIAN-CVE-2026-87910
Debian:14python3.143.14.9-1DEBIAN-CVE-2026-87910
Debian:14python3.153.15.0~rc3-1DEBIAN-CVE-2026-87910
Ubuntu:22.04:LTSpypy3no fix listedUBUNTU-CVE-2026-87910
Ubuntu:24.04:LTSpypy3no fix listedUBUNTU-CVE-2026-87910
Ubuntu:26.04:LTSpypy3no fix listedUBUNTU-CVE-2026-87910
Ubuntu:26.10pypy3no fix listedUBUNTU-CVE-2026-87910
Ubuntu:22.04:LTSpython3.10no fix listedUBUNTU-CVE-2026-87910
Ubuntu:24.04:LTSpython3.12no fix listedUBUNTU-CVE-2026-87910
Ubuntu:26.04:LTSpython3.14no fix listedUBUNTU-CVE-2026-87910
Ubuntu:26.10python3.14no fix listedUBUNTU-CVE-2026-87910

Affected products (as reported)

VendorProductVersions
Python Software Foundation CPython 0 – before 3.10.223.11.0 – before 3.11.173.12.0 – before 3.12.153.13.0 – before 3.13.163.14.0 – before 3.14.93.15.0a1 – before 3.15.0rc3

Weakness: CWE-22, CWE-59 · Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

References