CVE-2024-12718
Description
Allows modifying some file metadata (e.g. last modified) with filter="data" or file permissions (chmod) with filter="tar" of files outside the extraction directory. 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. Only Python versions 3.12 or later are affected by these vulnerabilities, earlier versions don't include the extraction filter feature. 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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.
✚ Propose a mitigation on Community → Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
SUSE Affected 1 release
| Version | Status | Fixed in |
|---|---|---|
| — | Affected | — |
AlmaLinux Fixed 1 release
| Version | Status | Fixed in |
|---|---|---|
| 9 | Fixed | python-unversioned-command-3.9.21-2.el9_6.1.noarch.rpm |
Debian Fixed 5 releases
| Version | Status | Fixed in |
|---|---|---|
| trixie | Fixed | 0 |
| sid | Fixed | 0 |
| forky | Fixed | 0 |
| bullseye | Fixed | 0 |
| bookworm | Fixed | 0 |
Red Hat Fixed 2 releases
| Version | Status | Fixed in |
|---|---|---|
| 9 | Fixed | — |
| 8 | Fixed | — |
Rocky Linux Fixed 2 releases
| Version | Status | Fixed in |
|---|---|---|
| 9 | Fixed | — |
| 8 | Fixed | — |
References
- https://access.redhat.com/errata/RHSA-2025:10136
- https://access.redhat.com/errata/RHSA-2025:10148
- https://access.redhat.com/errata/RHSA-2025:10189
- https://errata.rockylinux.org/RLSA-2025:10026
- https://errata.rockylinux.org/RLSA-2025:10031
- https://www.suse.com/security/cve/CVE-2024-12718.html
- https://security-tracker.debian.org/tracker/CVE-2024-12718
- https://errata.rockylinux.org/RLSA-2025:10189
- https://access.redhat.com/errata/RHSA-2025:10031
- https://bugzilla.redhat.com/2370010
- https://bugzilla.redhat.com/2370013
- https://bugzilla.redhat.com/2370014
- https://bugzilla.redhat.com/2370016
- https://bugzilla.redhat.com/2372426
- https://errata.almalinux.org/8/ALSA-2025-10031.html
- https://access.redhat.com/errata/RHSA-2025:10026
- https://errata.almalinux.org/8/ALSA-2025-10026.html
- https://access.redhat.com/errata/RHSA-2025:10128
- https://errata.almalinux.org/8/ALSA-2025-10128.html
- https://errata.almalinux.org/9/ALSA-2025-10189.html
- https://errata.almalinux.org/9/ALSA-2025-10136.html
- https://errata.almalinux.org/9/ALSA-2025-10148.html
- https://errata.rockylinux.org/RLSA-2025:10148
- https://errata.rockylinux.org/RLSA-2025:10136
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.