Red Hat VEX
RHVEX-CVE-2025-4330
cpython: python: Extraction filter bypass for linking outside extraction directory
Details
A flaw was found in CPython's tarfile module. This vulnerability allows bypassing of extraction filters, enabling symlink traversal outside the intended extraction directory and potential modification of file metadata via malicious tar archives using TarFile.extractall() or TarFile.extract() with the filter="data" or filter="tar" parameters. This issue leads to potentially overwriting or modifying system files and metadata.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:8 | Cython | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | PyYAML | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | babel | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | mod_wsgi | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | numpy | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python-PyMySQL | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python-asn1crypto | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python-cffi | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python-chardet | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python-cryptography | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python-idna | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python-jinja2 | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python-lxml | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python-markupsafe | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python-ply | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python-psutil | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python-psycopg2 | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python-pycparser | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python-pysocks | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python-requests | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python-six | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python-urllib3 | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python-wheel | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38 | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-Cython | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-PyMySQL | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-asn1crypto | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-babel | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-cffi | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-chardet | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-cryptography | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-debug | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-devel | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-idle | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-idna | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-jinja2 | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-libs | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-lxml | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-markupsafe | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-mod_wsgi | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-numpy | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-numpy-doc | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-numpy-f2py | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-pip | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-pip-wheel | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-ply | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-psutil | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-psycopg2 | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-psycopg2-doc | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-psycopg2-tests | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-pycparser | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-pysocks | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-pytz | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-pyyaml | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-requests | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-rpm-macros | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-scipy | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-setuptools | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-setuptools-wheel | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-six | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-test | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-tkinter | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-urllib3 | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-wheel | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python38-wheel-wheel | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python3x-pip | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python3x-setuptools | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python3x-six | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | pytz | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | scipy | All versions, will not be fixed |
References
- https://access.redhat.com/security/cve/CVE-2025-4330
- https://bugzilla.redhat.com/show_bug.cgi?id=2370014
- https://www.cve.org/CVERecord?id=CVE-2025-4330
- https://nvd.nist.gov/vuln/detail/CVE-2025-4330
- https://gist.github.com/sethmlarson/52398e33eff261329a0180ac1d54f42f
- https://github.com/python/cpython/commit/3612d8f51741b11f36f8fb0494d79086bac9390a
- https://github.com/python/cpython/commit/9e0ac76d96cf80b49055f6d6b9a6763fb9215c2a
- https://github.com/python/cpython/issues/135034
- https://github.com/python/cpython/pull/135037
- https://mail.python.org/archives/list/[email protected]/thread/MAXIJJCUUMCL7ATZNDVEGGHUMQMUUKLG/