Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-4360: CWE-281 in Python Software Foundation CPython

0
Low
VulnerabilityCVE-2026-4360cvecve-2026-4360cwe-281
Published: 06/30/2026 (06/30/2026, 14:45:35 UTC)
Source: CVE Database V5
Vendor/Project: Python Software Foundation
Product: CPython

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.

CVSS v4.0

Score 2.0low

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
High
User Interaction
Passive
Vuln. Confidentiality
None
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Affected software

GitHub Actionsmore threats →cve
CPython
pkg:github/CPython
Affected versions
<3.16.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/30/2026, 15:21:51 UTC

Technical Analysis

The vulnerability in CPython's Tarfile.extract() function involves improper handling of the filter parameter during extraction of hardlinks. When extracting content from untrusted tar files, the filter='data' parameter intended to restrict extraction is not enforced correctly for hardlinks, potentially allowing files to be written with unexpected uid/gid values. This could lead to unintended file ownership changes on the affected system. The issue is tracked as CWE-281 (Improper Restriction of Operations within the Bounds of a Memory Buffer).

Potential Impact

An attacker who can supply a crafted tar archive to a system running a vulnerable CPython version and invoking Tarfile.extract() with a filter may cause files to be created with unexpected user and group IDs. This could potentially lead to minor privilege or access control issues. The CVSS score is low (2.0), indicating limited impact and requiring privileges and user interaction for exploitation.

Mitigation Recommendations

No official fix or patch is currently confirmed for this vulnerability. Users should monitor the Python Software Foundation advisories for updates. Until a patch is available, avoid extracting untrusted tar files using Tarfile.extract() with the filter parameter or apply additional manual validation of extracted file ownership. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
PSF
Date Reserved
2026-03-17T19:25:46.527Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a43db7c27e9c79719f8cbd4

Added to database: 06/30/2026, 15:06:36 UTC

Last enriched: 06/30/2026, 15:21:51 UTC

Last updated: 06/30/2026, 15:51:47 UTC

Views: 10

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses