https://seclists.org/oss-sec/2026/q3/578: [CVE-2026-19672] CPython: tarfile extraction filter bypass allows cation of dictories outside the destination

Published Aug 25, 2026
·
Updated

Affected Software

1 affected component
Python CPython

Frequently Asked Questions

1

Which environments are affected?

The issue affects CPython tarfile extraction on POSIX platforms. Windows is not affected because .. path components are collapsed before reaching the filesystem.

2

What must an attacker-controlled archive contain to trigger the issue?

A member name must leave the extraction destination and then return to it, such as ../evil/../dest/sub/file. To return to the destination, the name must include the destination directory's final component.

3

Are extra files written outside the extraction destination?

No. Only empty directories are created outside the destination; member contents are still extracted within the destination.

4

What can reduce exposure if an immediate update is not possible?

Extracting archives into a securely randomized destination directory is not affected, because an archive member cannot predict the destination directory's final component needed to return to it.

5

What evidence would indicate an attempted or successful exploitation?

The observable impact is the creation of empty directories outside the intended extraction destination. Archive member names that traverse out of the destination and include its final directory component are relevant indicators.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203