CVE-2026-87910

tarfile hardlink fallback ignores custom extraction filter rejection via None

State
Published
Severity
5.7 Medium
Published
Sep 11, 2026
Updated
Oct 22, 2026
Reserved
Sep 9, 2026

Read the record on cve.org

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

CVSSScoreVectorSource
4.05.7 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:NPSF

Weaknesses

Affected Products

ProductVersions
CPythonPython Software Foundation
  • before 3.10.22Affected
  • 3.11.0 to before 3.11.17Affected
  • 3.12.0 to before 3.12.15Affected
  • 3.13.0 to before 3.13.16Affected
  • 3.14.0 to before 3.14.9Affected
  • 3.15.0a1 to before 3.15.0rc3Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.