CVE-2026-87910

tarfile hardlink fallback ignores custom extraction filter rejection via None

At a glance

Severity
MEDIUM 5.7
EPSS
EPSS 0.61 % · percentile 49 (2026-10-27)
State
PUBLISHED
Published
Updated
Assigner
PSF
NVD status
Awaiting Analysis

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.

Scores

VersionScoreVectorScored by
CVSS 4.0MEDIUM 5.7CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:NPSF
CVSS 4.0MEDIUM 5.7CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XNVD · cna@python.org (Secondary)

Weaknesses (CWE)

European references

CERT-FR advisories

Affected products

ProductVersions
Python Software Foundation · CPythonaffected 0 < 3.10.22 ; affected 3.11.0 < 3.11.17 ; affected 3.12.0 < 3.12.15 ; affected 3.13.0 < 3.13.16 ; affected 3.14.0 < 3.14.9 ; affected 3.15.0a1 < 3.15.0rc3

References

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD