Skip to content
CVE PROGRAM SOURCE RECORD2.0 Low

CVE-2026-4360

Tarfile.extract() doesn't fully respect filter parameter

Description

In the Tarfile.extract() function, the filter parameter is not passed properly when extracting hardlinks. An affected system that extracts content from untrusted tar files could end up writing files with an unexpected uid/gid despite the user passing filter='data' to the extract() function.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Python Software Foundation CPython

Default version status: unaffected

  • 0 to < 3.10.21affected
  • 3.11.0 to < 3.11.16affected
  • 3.12.0 to < 3.12.14affected
  • 3.13.0 to < 3.13.15affected
  • 3.14.0 to < 3.14.7affected
  • 3.15.0a1 to < 3.15.0b4affected

References