CVE-2025-4330
Extraction filter bypass for linking outside extraction directory
No exploitation reported by the sources we read.
- Published2025-06-03
- Fixed in3.13.4 · 3.12.11 · 3.11.13 · 3.10.18 · 3.9.23
- WeaknessCWE-22
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
Allows the extraction filter to be ignored, allowing symlink targets to point outside the destination directory, and the modification of some file metadata. You are affected by this vulnerability if using the tarfile module to extract untrusted tar archives using TarFile.extractall() or TarFile.extract() using the filter= parameter with a value of "data" or "tar". See the tarfile extraction filters documentation https://docs.python.org/3/library/tarfile.html#tarfile-extraction-filter for more information. Note that for Python 3.14 or later the default value of filter= changed from "no filtering" to `"data", so if you are relying on this new default behavior then your usage is also affected. Note that none of these vulnerabilities significantly affect the installation of source distributions which are tar archives as source distributions already allow arbitrary code execution during the build process. However when evaluating source distributions it's important to avoid installing source distributions with suspicious links.
Timeline
dates in UTC- 2025-06-0313:15CVE publishedNVD
Versions per branch
OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 3.13 | ≥ 3.13.0, < 3.13.4 | 3.13.4 | OSV |
| 3.12 | ≥ 3.12.0, < 3.12.11 | 3.12.11 | OSV |
| 3.11 | ≥ 3.11.0, < 3.11.13 | 3.11.13 | OSV |
| 3.10 | ≥ 3.10.0, < 3.10.18 | 3.10.18 | OSV |
| 3.9 | < 3.9.23 | 3.9.23 | OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 3.13 | ≥ 3.13.0, < 3.13.4 | 3.13.4 | OSV |
| 3.12 | ≥ 3.12.0, < 3.12.11 | 3.12.11 | OSV |
| 3.11 | ≥ 3.11.0, < 3.11.13 | 3.11.13 | OSV |
| 3.10 | ≥ 3.10.0, < 3.10.18 | 3.10.18 | OSV |
| 3.9 | < 3.9.23 | 3.9.23 | OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 3.13 | ≥ 3.13.0, < 3.13.4 | 3.13.4 | OSV |
| 3.12 | ≥ 3.12.0, < 3.12.11 | 3.12.11 | OSV |
| 3.11 | ≥ 3.11.0, < 3.11.13 | 3.11.13 | OSV |
| 3.10 | ≥ 3.10.0, < 3.10.18 | 3.10.18 | OSV |
| 3.9 | < 3.9.23 | 3.9.23 | OSV |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As PSF, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- Python Software Foundation CPythonother versions: not affected
https://github.com/python/cpython
Affected- < 3.9.23fixed in 3.9.23python
- ≥ 3.10.0, < 3.10.18fixed in 3.10.18python
- ≥ 3.11.0, < 3.11.13fixed in 3.11.13python
- ≥ 3.12.0, < 3.12.11fixed in 3.12.11python
- ≥ 3.13.0, < 3.13.4fixed in 3.13.4python
- ≥ 3.14.0a1, < 3.14.0b3fixed in 3.14.0b3python
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2026-07-31
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- cassandraCleanStartall versions · fixed in 5.0.6-r2and 1 other package
- cassandra-fipsCleanStartall versions · fixed in 4.0.19-r3
- cassandra-fipsCleanStartall versions · fixed in 4.1.10-r2
- CythonRocky Linux:8all versions · fixed in 0:0.29.21-5.module+el8.10.0+1582+bc278001
- CythonRocky Linux:8all versions · fixed in 0:0.29.21-5.module+el8.10.0+1860+afcc1c71
- CythonRed Hat:enterprise_linux:8::crball versions · fixed in 0:0.29.21-5.module+el8.9.0+19644+d68f775dand 3 other packages
- golang-github-lusitaniae-apache_exporterSUSE:Multi Linux Manager Tools SLE-15all versions · fixed in 1.0.10-150002.3.12.1
- golang-github-lusitaniae-apache_exporterSUSE:Multi Linux Manager Tools SLE-12all versions · fixed in 1.0.10-120002.3.12.1
435 more package ranges on OSV.dev
Vendor advisories
cpython: python: Extraction filter bypass for linking outside extraction directory
Cython.src (python38:3.8) as a component of Red Hat Enterprise Linux 8 · PyYAML.src (python38:3.8) as a component of Red Hat Enterprise Linux 8 · babel.src (python38:3.8) as a component of Red Hat Enterprise Linux 8 · +81 more
Red Hat Security Advisory: A Subscription Management tool for finding and reporting Red Hat product usage
Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update
Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update
Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update
Siemens SINEC OS
RUGGEDCOM RST2428P (6GK6242-6PA00) · SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family · SCALANCE XCH328 (6GK5328-4TS01-2EC2) · +13 more
15 more advisories
Fix
- Update python to 3.13.4 · 3.12.11 · 3.11.13 · 3.10.18 · 3.9.23
- Vendor fix Red Hat Product Security RHSA-2026:54760 · 2 productsThe containers required to run Discovery can be installed through discovery-installer RPM. See the official documentation for more details.
- Vendor fix Red Hat Product Security RHSA-2026:38091 · 29 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://images.redhat.com/
- Vendor fix CISA ICSA-26-043-06 · 14 productsUpdate to V3.3 or later version
- Vendor fix CISA ICSA-26-043-06 · 1 productSee Section Additional Information.
- Vendor fix Siemens ProductCERT SSA-089022 · 14 productsUpdate to V3.3 or later version
- Vendor fix Siemens ProductCERT SSA-089022 · 1 productSee Section Additional Information.
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-11-26
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVE recordread 2026-10-23
- CISA-ADPSSVC decisionnone2025-06-03
- CNACVSS 3.17.5known since 2026-10-23
- CNAweakness (CWE)CWE-22known since 2026-10-23
- FIRST EPSSEPSS score1.4 %2026-11-25
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- AZL-62313same flawAzure Linux · MIT
- BIT-libpython-2025-4330same flawBitnami · Apache-2.0
- BIT-python-2025-4330same flawBitnami · Apache-2.0
- BIT-python-min-2025-4330same flawBitnami · Apache-2.0
- CGA-85gh-x9mx-cw7xsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-mgp5-vc99-45hxsame flawChainguard · CC-BY-NC-ND-4.0
- EUVD-2025-16737same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-68pj-xrp5-vccjsame flawGitHub Advisory Database · CC-BY-4.0
- MINI-fj76-hmw9-27w8same flawMinimOS · LicenseRef-unstated
- MINI-pqf4-534v-vpj3same flawMinimOS · LicenseRef-unstated
- MINI-r5w9-7rxp-3fwgsame flawMinimOS · LicenseRef-unstated
- MINI-rp38-xr9j-ww7xsame flawMinimOS · LicenseRef-unstated
- PSF-2025-7same flawPython Software Foundation · CC-BY-4.0
- ALSA-2025:10026advisory covering several CVEsAlmaLinux · MIT
- ALSA-2025:10031advisory covering several CVEsAlmaLinux · MIT
- ALSA-2025:10128advisory covering several CVEsAlmaLinux · MIT
- ALSA-2025:10136advisory covering several CVEsAlmaLinux · MIT
- ALSA-2025:10140advisory covering several CVEsAlmaLinux · MIT
- ALSA-2025:10148advisory covering several CVEsAlmaLinux · MIT
- ALSA-2025:10189advisory covering several CVEsAlmaLinux · MIT
- ALSA-2025:23530advisory covering several CVEsAlmaLinux · MIT
- MGASA-2025-0280advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2025-1789advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-1790advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-1791advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-2304advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-2305advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-2538advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2025:15285-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2025:15286-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2025:15287-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2025:15288-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2025:15290-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2025:10026advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:10028advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:10031advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:10128advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:10136advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:10140advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:10148advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:10189advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:10399advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:10484advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:10602advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:23530advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:9918advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:38017advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:38090advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:38091advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2025:10026advisory covering several CVEsRocky Linux · BSD-3-Clause
Technical details
- CVSS v3 vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- Published
- 2025-06-03
- Last modified
- 2026-07-31
- NVD status
- Deferred
- GitHub advisory
- GHSA-68pj-xrp5-vccj
Frequently asked questions
What is CVE-2025-4330?
Is CVE-2025-4330 actively exploited?
What is the CVSS score for CVE-2025-4330?
Running Python? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website checks · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CISA ICS advisories (CSAF) · Public domain (US Government work)
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-68pj-xrp5-vccj
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OpenCVE · OpenCVE terms of service · terms restrict redistribution
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- Siemens ProductCERT (CSAF) · TLP:WHITE (commercial use and redistribution granted)
- CISA Vulnrichment · CC0-1.0