CVE-2026-4360
JSON

2.0low

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

Severity
2.0low CVSS:4.0 by PSF
Exploit likelihood
0.28% (higher than 21% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
PSF
Also known as
PSF-2026-32BIT-LIBPYTHON-2026-4360BIT-PYTHON-2026-4360BIT-PYTHON-MIN-2026-4360

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.

Affected

Product or packageVersionsReported by
Python Software Foundation CPythonbefore 3.10.21, from 3.11.0 before 3.11.16, from 3.12.0 before 3.12.14, from 3.13.0 before 3.13.15, from 3.14.0 before 3.14.7, from 3.15.0a1 before 3.15.0b4CVE List
https://github.com/python/cpythonbefore 5e0ef3f1afe892e4f64eb83368db57ac4c40cba0, before 7b57e8d51446297b8c7c482d224bc5f1938e4301, before 7ccdbaba2c54250a70d7f25632152df7655a5e0a, before eee3ddf0ca10283cc7fea724aae9cd8665f8d15e, before d2b2f5eacab4dd48446b63340613b05dcbbf0b44, before cf23b9153181062150d061468b6d24af33fe214f, before 0367912be336348b30572f8029cec4a282782d92Python Software Foundation
python pythonbefore 3.1.5NVD
libpython (Bitnami)before 3.10.21, from 3.11.0 before 3.11.16, from 3.12.0 before 3.12.14, from 3.13.0 before 3.13.15, from 3.14.0 before 3.14.7Bitnami Vulnerability Database
python (Bitnami)before 3.10.21, from 3.11.0 before 3.11.16, from 3.12.0 before 3.12.14, from 3.13.0 before 3.13.15, from 3.14.0 before 3.14.7Bitnami Vulnerability Database
python-min (Bitnami)before 3.10.21, from 3.11.0 before 3.11.16, from 3.12.0 before 3.12.14, from 3.13.0 before 3.13.15, from 3.14.0 before 3.14.7Bitnami Vulnerability Database

All scores

PSF2.0low CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Bitnami Vulnerability Databasemedium rating

Classification

CWE-281

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En la función Tarfile.extract(), el parámetro filter no se pasa correctamente al extraer hardlinks. Un sistema afectado que extrae contenido de archivos tar no confiables podría terminar escribiendo archivos con un uid/gid inesperado a pesar de que el usuario pase filter=’data’ a la función extract().

References

https://mail.python.org/archives/list/security-announce@python.org/thread/TWZW2PC2AZOV6FENIHFSRC63OM7MBGSB/advisory, issue-tracking, vendor-advisory
https://github.com/python/cpython/pull/151988fix, issue-tracking, patch, web
https://github.com/python/cpython/issues/151987fix, issue-tracking, patch, report
https://github.com/python/cpython/commit/5e0ef3f1afe892e4f64eb83368db57ac4c40cba0fix, patch
https://github.com/python/cpython/commit/7b57e8d51446297b8c7c482d224bc5f1938e4301fix, patch
https://github.com/python/cpython/commit/7ccdbaba2c54250a70d7f25632152df7655a5e0afix, patch
https://github.com/python/cpython/commit/eee3ddf0ca10283cc7fea724aae9cd8665f8d15efix, patch
https://github.com/python/cpython/commit/d2b2f5eacab4dd48446b63340613b05dcbbf0b44fix, patch
https://github.com/python/cpython/commit/cf23b9153181062150d061468b6d24af33fe214ffix, patch, web
https://github.com/python/cpython/commit/0367912be336348b30572f8029cec4a282782d92fix, patch, web
https://nvd.nist.gov/vuln/detail/CVE-2026-4360web

Sources

SourceRecordLicence
CVE ListCVE-2026-4360 changed 2026-08-13CVE Terms of Use
Python Software FoundationPSF-2026-32 changed 2026-08-05CC-BY-4.0
NVDCVE-2026-4360 changed 2026-10-25Public domain
Bitnami Vulnerability DatabaseBIT-LIBPYTHON-2026-4360 changed 2026-09-16Apache-2.0
Bitnami Vulnerability DatabaseBIT-PYTHON-2026-4360 changed 2026-09-16Apache-2.0
Bitnami Vulnerability DatabaseBIT-PYTHON-MIN-2026-4360 changed 2026-09-16Apache-2.0