CVE-2026-4360: Tarfile.extract() doesn't fully respect filter parameter

Published Jun 30, 2026
·
Updated

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.

Other sources

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

Microsoft

Affected Software

3 affected componentsFixes available
python/tarfile
Python Python<3.1.5
Microsoft azl3 python3 3.12.9-14<3.12.9-14
3.12.9-14

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 3.12.9-14

Event History

Jun 30, 2026
CVE Published
via MITRE·02:45 PM
Data Sourced
via MITRE·02:45 PM
DescriptionWeakness
Data Sourced
via NVD·03:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 3, 2026
Data Sourced
via Microsoft·08:04 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:04 AM
Affected Software
Updated
via Microsoft·08:04 AM
DescriptionSeverity
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-4360?

CVE-2026-4360 has a risk score of 47, indicating a moderate potential impact.

2

How do I fix CVE-2026-4360?

To fix CVE-2026-4360, update your Python installation to the latest version that addresses the issue in the Tarfile.extract() function.

3

What systems are affected by CVE-2026-4360?

CVE-2026-4360 affects systems using the Python tarfile module when extracting files from untrusted tar archives.

4

What are the potential risks of CVE-2026-4360?

The potential risks of CVE-2026-4360 include unauthorized file creation with unexpected user IDs and group IDs.

5

How does CVE-2026-4360 affect the Tarfile.extract() function?

CVE-2026-4360 affects the Tarfile.extract() function by improperly handling the filter parameter for hardlinks, leading to possible security vulnerabilities.

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