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 package | Versions | Reported by |
|---|---|---|
| Python Software Foundation CPython | 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.7, from 3.15.0a1 before 3.15.0b4 | CVE List |
| https://github.com/python/cpython | before 5e0ef3f1afe892e4f64eb83368db57ac4c40cba0, before 7b57e8d51446297b8c7c482d224bc5f1938e4301, before 7ccdbaba2c54250a70d7f25632152df7655a5e0a, before eee3ddf0ca10283cc7fea724aae9cd8665f8d15e, before d2b2f5eacab4dd48446b63340613b05dcbbf0b44, before cf23b9153181062150d061468b6d24af33fe214f, before 0367912be336348b30572f8029cec4a282782d92 | Python Software Foundation |
| python python | before 3.1.5 | NVD |
| 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.7 | Bitnami 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.7 | Bitnami 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.7 | Bitnami Vulnerability Database |
All scores
| PSF | 2.0low CVSS:4.0 | 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 |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
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
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-4360 changed 2026-08-13 | CVE Terms of Use |
| Python Software Foundation | PSF-2026-32 changed 2026-08-05 | CC-BY-4.0 |
| NVD | CVE-2026-4360 changed 2026-10-25 | Public domain |
| Bitnami Vulnerability Database | BIT-LIBPYTHON-2026-4360 changed 2026-09-16 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-PYTHON-2026-4360 changed 2026-09-16 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-PYTHON-MIN-2026-4360 changed 2026-09-16 | Apache-2.0 |