Bug 2519726 (CVE-2026-19672) - CVE-2026-19672 python: Python tarfile module: Directory traversal allows creation of empty directories outside extraction destination
Summary: CVE-2026-19672 python: Python tarfile module: Directory traversal allows crea...
Keywords:
Status: NEW
Alias: CVE-2026-19672
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-08-19 15:43 UTC by OSIDB Bzimport
Modified: 2026-09-08 07:49 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-08-19 15:43:27 UTC
The tarfile module's tar and data
 extraction filters created directories outside the destination for 
members whose name leaves the destination and returns to it, such as ../evil/../dest/sub/file. The containment check used the resolved path, but intermediate directories were created from the name as given.

Only
 empty directories are created outside the destination. Member contents 
are still extracted inside it. To return to the destination the member's
 name must contain the destination directory's own final component, so 
extraction into a secure randomised directory is not affected.

This affects POSIX platforms only. On Windows, .. components are collapsed before the path reaches the filesystem, so the directories outside the destination are never created.


Note You need to log in before you can comment on or make changes to this bug.