Skip to content
VulniPulse
Medium5.3Red Hat Linux

Medium [CVE-2026-19672] Python tarfile module: Directory traversal allows creation of empty directories outside extraction destination

This medium-severity Red Hat Linux advisory covers CVE-2026-19672 affecting Red Hat Hardened Images.

CVE-2026-19672 Published Aug 19, 2026Updated by vendor Aug 19, 2026
Affected products & platforms
Red Hat LinuxUnclassified
Open vendor advisory

Android app · Google Play

Monitor future Red Hat Linux CVEs from your phone.

Choose a whole vendor or a precise platform, then receive matching security advisories by phone notification, email, or both. Coverage follows 32 official vendor sources and 160+ reviewed platform categories.

Matching phone alertsOptional email delivery

Summary

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.

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.

This vulnerability allows an attacker to create empty directories outside of the intended extraction destination on POSIX (Portable Operating System Interface) platforms. This occurs when processing a specially crafted archive containing member names that use directory traversal sequences (e.g., `../`) to leave and then re-enter the target directory.

While only empty directories are created outside the destination, this can lead to unintended file system modifications. Red Hat severity: Moderate — CVSS 5.3 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N).

Weakness: CWE-22. Affected Red Hat products: Red Hat Hardened Images.

Affected versions

No affected-version range was extracted from the source record. The vendor advisory is authoritative — check it before change work.

Official advisory · high-confidence parse· fetched 1 hour ago·verify at source

Fixed versions
  • python3-14-main-3.14.7-1.1.hum1
  • python3-10-main-3.10.21-1.1.hum1
  • python3-11-main-3.11.16-1.2.hum1
  • python3-12-main-3.12.14-1.1.hum1
  • python3-13-main-3.13.15-1.1.hum1
  • RHSA-2026:65505
  • RHSA-2026:65513
  • RHSA-2026:65525
  • RHSA-2026:65531
  • RHSA-2026:65567

Official advisory · high-confidence parse· fetched 1 hour ago·verify at source

Mitigation

Upgrade to a fixed release: python3-14-main-3.14.7-1.1.hum1, python3-10-main-3.10.21-1.1.hum1, python3-11-main-3.11.16-1.2.hum1, python3-12-main-3.12.14-1.1.hum1, python3-13-main-3.13.15-1.1.hum1, RHSA-2026:65505. That is the remediation for this advisory.

The vendor advisory may list additional interim mitigations or workarounds not captured here — review it before change work.

Official advisory · high-confidence parse· fetched 1 hour ago·verify at source

Discussion(0)

No comments yet. Share field notes, upgrade gotchas, or questions — verify against the vendor advisory before acting on community advice.

Sign in to join the discussion.