CVE-2026-4360
Detail
Modified After Enrichment
This CVE record has been updated after NVD enrichment efforts were completed. Enrichment data supplied by the NVD may require amendment due to these changes.
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.
Metrics
CVSS Version 4.0
CVSS Version 3.x
CVSS Version 2.0
NVD enrichment efforts reference publicly available information to associate
vector strings. CVSS information contributed by other sources is also
displayed.
CVSS 4.0 Severity and Vector Strings:
NVD assessment
not yet provided.
CNA: Python Software Foundation
Vector: 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
CVSS 3.x Severity and Vector Strings:
Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
CVSS 2.0 Severity and Vector Strings:
NVD assessment
not yet provided.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving NIST webspace.
We have provided these links to other web sites because they
may have information that would be of interest to you. No
inferences should be drawn on account of other sites being
referenced, or not, from this page. There may be other web
sites that are more appropriate for your purpose. NIST does
not necessarily endorse the views expressed, or concur with
the facts presented on these sites. Further, NIST does not
endorse any commercial products that may be mentioned on
these sites. Please address comments about this page to [email protected] .
Weakness Enumeration
CWE-ID
CWE Name
Source
CWE-281
Improper Preservation of Permissions
Python Software Foundation
Change History
10 change records found show changes
CVE Modified by Python Software Foundation
8/12/2026 9:16:53 PM
Action
Type
Old Value
New Value
Changed
Affected
[{"vendor":"Python Software Foundation","product":"CPython","defaultStatus":"unaffected","modules":["tarfile"],"repo":"https://github.com/python/cpython","versions":[{"version":"0","lessThan":"3.13.15","versionType":"python","status":"affected"},{"version":"3.14.0","lessThan":"3.14.7","versionType":"python","status":"affected"},{"version":"3.15.0a1","lessThan":"3.15.0b4","versionType":"python","status":"affected"}]}]
[{"vendor":"Python Software Foundation","product":"CPython","defaultStatus":"unaffected","modules":["tarfile"],"repo":"https://github.com/python/cpython","versions":[{"version":"0","lessThan":"3.10.21","versionType":"python","status":"affected"},{"version":"3.11.0","lessThan":"3.11.16","versionType":"python","status":"affected"},{"version":"3.12.0","lessThan":"3.12.14","versionType":"python","status":"affected"},{"version":"3.13.0","lessThan":"3.13.15","versionType":"python","status":"affected"},{"version":"3.14.0","lessThan":"3.14.7","versionType":"python","status":"affected"},{"version":"3.15.0a1","lessThan":"3.15.0b4","versionType":"python","status":"affected"}]}]
CVE Modified by Python Software Foundation
8/05/2026 9:16:29 PM
Action
Type
Old Value
New Value
Changed
Affected
[{"vendor":"Python Software Foundation","product":"CPython","defaultStatus":"unaffected","modules":["tarfile"],"repo":"https://github.com/python/cpython","versions":[{"version":"0","lessThan":"3.14.7","versionType":"python","status":"affected"},{"version":"3.15.0a1","lessThan":"3.15.0b4","versionType":"python","status":"affected"}]}]
[{"vendor":"Python Software Foundation","product":"CPython","defaultStatus":"unaffected","modules":["tarfile"],"repo":"https://github.com/python/cpython","versions":[{"version":"0","lessThan":"3.13.15","versionType":"python","status":"affected"},{"version":"3.14.0","lessThan":"3.14.7","versionType":"python","status":"affected"},{"version":"3.15.0a1","lessThan":"3.15.0b4","versionType":"python","status":"affected"}]}]
CVE Modified by Python Software Foundation
8/05/2026 10:17:06 AM
Action
Type
Old Value
New Value
Changed
Affected
[{"vendor":"Python Software Foundation","product":"CPython","defaultStatus":"unaffected","modules":["tarfile"],"repo":"https://github.com/python/cpython","versions":[{"version":"0","lessThan":"3.15.0b4","versionType":"python","status":"affected"}]}]
[{"vendor":"Python Software Foundation","product":"CPython","defaultStatus":"unaffected","modules":["tarfile"],"repo":"https://github.com/python/cpython","versions":[{"version":"0","lessThan":"3.14.7","versionType":"python","status":"affected"},{"version":"3.15.0a1","lessThan":"3.15.0b4","versionType":"python","status":"affected"}]}]
CVE Modified by Python Software Foundation
8/04/2026 9:16:46 PM
Action
Type
Old Value
New Value
Added
Reference
https://github.com/python/cpython/commit/0367912be336348b30572f8029cec4a282782d92
CVE Modified by Python Software Foundation
7/23/2026 3:16:54 PM
Action
Type
Old Value
New Value
Added
Reference
https://github.com/python/cpython/commit/cf23b9153181062150d061468b6d24af33fe214f
Changed
Affected
[{"vendor":"Python Software Foundation","product":"CPython","defaultStatus":"unaffected","modules":["tarfile"],"repo":"https://github.com/python/cpython","versions":[{"version":"0","lessThan":"3.15.0","versionType":"python","status":"affected"}]}]
[{"vendor":"Python Software Foundation","product":"CPython","defaultStatus":"unaffected","modules":["tarfile"],"repo":"https://github.com/python/cpython","versions":[{"version":"0","lessThan":"3.15.0b4","versionType":"python","status":"affected"}]}]
Initial Analysis by NIST
7/08/2026 10:40:39 PM
Action
Type
Old Value
New Value
Added
CVSS V3.1
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Added
CPE Configuration
OR
*cpe:2.3:a:python:python:*:*:*:*:*:*:*:* versions up to (excluding) 3.1.5
Added
Reference Type
Python Software Foundation: https://github.com/python/cpython/commit/5e0ef3f1afe892e4f64eb83368db57ac4c40cba0 Types: Patch
Added
Reference Type
Python Software Foundation: https://github.com/python/cpython/commit/7b57e8d51446297b8c7c482d224bc5f1938e4301 Types: Patch
Added
Reference Type
Python Software Foundation: https://github.com/python/cpython/commit/7ccdbaba2c54250a70d7f25632152df7655a5e0a Types: Patch
Added
Reference Type
Python Software Foundation: https://github.com/python/cpython/commit/d2b2f5eacab4dd48446b63340613b05dcbbf0b44 Types: Patch
Added
Reference Type
Python Software Foundation: https://github.com/python/cpython/commit/eee3ddf0ca10283cc7fea724aae9cd8665f8d15e Types: Patch
Added
Reference Type
Python Software Foundation: https://github.com/python/cpython/issues/151987 Types: Issue Tracking, Patch
Added
Reference Type
Python Software Foundation: https://github.com/python/cpython/pull/151988 Types: Issue Tracking, Patch
Added
Reference Type
Python Software Foundation: https://mail.python.org/archives/list/[email protected] /thread/TWZW2PC2AZOV6FENIHFSRC63OM7MBGSB/ Types: Issue Tracking, Vendor Advisory
CVE Modified by Python Software Foundation
7/07/2026 2:16:38 PM
Action
Type
Old Value
New Value
Added
Reference
https://github.com/python/cpython/commit/d2b2f5eacab4dd48446b63340613b05dcbbf0b44
CVE Modified by CISA-ADP
6/30/2026 12:16:55 PM
Action
Type
Old Value
New Value
Added
SSVC
{"timestamp":"2026-06-30T15:28:24.835246Z","id":"CVE-2026-4360","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}
CVE Modified by Python Software Foundation
6/30/2026 12:16:55 PM
Action
Type
Old Value
New Value
Added
Reference
https://github.com/python/cpython/commit/5e0ef3f1afe892e4f64eb83368db57ac4c40cba0
Added
Reference
https://github.com/python/cpython/commit/7b57e8d51446297b8c7c482d224bc5f1938e4301
Added
Reference
https://github.com/python/cpython/commit/7ccdbaba2c54250a70d7f25632152df7655a5e0a
Added
Reference
https://github.com/python/cpython/commit/eee3ddf0ca10283cc7fea724aae9cd8665f8d15e
Changed
Affected
[{"vendor":"Python Software Foundation","product":"CPython","defaultStatus":"unaffected","modules":["tarfile"],"repo":"https://github.com/python/cpython","versions":[{"version":"0","lessThan":"3.16.0","versionType":"python","status":"affected"}]}]
[{"vendor":"Python Software Foundation","product":"CPython","defaultStatus":"unaffected","modules":["tarfile"],"repo":"https://github.com/python/cpython","versions":[{"version":"0","lessThan":"3.15.0","versionType":"python","status":"affected"}]}]
New CVE Received from Python Software Foundation
6/30/2026 11:16:57 AM
Action
Type
Old Value
New Value
Added
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.
Added
CVSS V4.0
AV:N/AC:L/AT:P/PR:H/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Added
CWE
CWE-281
Added
Reference
https://github.com/python/cpython/issues/151987
Added
Reference
https://github.com/python/cpython/pull/151988
Added
Reference
https://mail.python.org/archives/list/[email protected] /thread/TWZW2PC2AZOV6FENIHFSRC63OM7MBGSB/
Added
Affected
[{"vendor":"Python Software Foundation","product":"CPython","defaultStatus":"unaffected","modules":["tarfile"],"repo":"https://github.com/python/cpython","versions":[{"version":"0","lessThan":"3.16.0","versionType":"python","status":"affected"}]}]
Quick Info
CVE Dictionary Entry: CVE-2026-4360 NVD
Published Date: 06/30/2026 NVD
Last Modified: 08/12/2026
Source: Python Software Foundation