🛡️ CVE-2025-4138 on Alpine — python3
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.
Distribution advisory
This page covers CVE-2025-4138 as tracked by Alpine, for the package python3. The fix is available in version 3.12.11-r0; earlier versions remain affected.
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity none, availability none.
Affected software
ALPINE-CVE-2025-4138 is recorded against 2 packages.
- python3 (fixed in 3.12.11-r0)
- python3-tkinter (fixed in 3.12.11-r0)
Timeline and source
Published on 3 June 2025 and last revised on 15 June 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
CVE-2025-4138 on other distributions
Each distribution ships its own build and its own fixed version. Pick the one you run:
Details
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| python3 | — | 3.12.11-r0 |
| python3-tkinter | — | 3.12.11-r0 |
References
Similar Threats
- Unknown ALPINE-CVE-2024-12718
- Unknown ALPINE-CVE-2025-4138
- Unknown ALPINE-CVE-2025-4330
- Unknown ALPINE-CVE-2025-4516
- Unknown ALPINE-CVE-2025-0938
Site Security Check
Is python3 part of your stack?
ALPINE-CVE-2025-4138 is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.