CVE-2025-6075: Vulnerability in Python Software Foundation CPython
If the value passed to os.path.expandvars() is user-controlled a performance degradation is possible when expanding environment variables.
AI Analysis
Technical Summary
The vulnerability in CPython arises when os.path.expandvars() is called with user-controlled input, leading to possible performance degradation during environment variable expansion. This is classified under CWE-400 (Uncontrolled Resource Consumption). The CVSS 4.0 base score is 1.8, indicating low severity. There are no known exploits in the wild, and no patch or official fix information is provided in the available data. The affected versions explicitly include CPython 3.10.0, 3.11.0, 3.12.0, 3.13.0, 3.14.0, and 3.15.0a1.
Potential Impact
The impact is limited to performance degradation when expanding environment variables using os.path.expandvars() with user-controlled input. There is no indication of code execution, data loss, or privilege escalation. The vulnerability could potentially be used to cause resource exhaustion or slowdowns in affected applications.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid passing untrusted or user-controlled input to os.path.expandvars() to mitigate potential performance issues.
CVE-2025-6075: Vulnerability in Python Software Foundation CPython
Description
If the value passed to os.path.expandvars() is user-controlled a performance degradation is possible when expanding environment variables.
CVSS v4.0
Score 1.8low
Affected software
pkg:pypi/cpythonRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in CPython arises when os.path.expandvars() is called with user-controlled input, leading to possible performance degradation during environment variable expansion. This is classified under CWE-400 (Uncontrolled Resource Consumption). The CVSS 4.0 base score is 1.8, indicating low severity. There are no known exploits in the wild, and no patch or official fix information is provided in the available data. The affected versions explicitly include CPython 3.10.0, 3.11.0, 3.12.0, 3.13.0, 3.14.0, and 3.15.0a1.
Potential Impact
The impact is limited to performance degradation when expanding environment variables using os.path.expandvars() with user-controlled input. There is no indication of code execution, data loss, or privilege escalation. The vulnerability could potentially be used to cause resource exhaustion or slowdowns in affected applications.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid passing untrusted or user-controlled input to os.path.expandvars() to mitigate potential performance issues.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- PSF
- Date Reserved
- 2025-06-13T15:05:20.139Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6904e98dae52ebddb37144c0
Added to database: 10/31/2025, 16:53:33 UTC
Last enriched: 08/02/2026, 19:48:09 UTC
Last updated: 09/10/2026, 19:24:57 UTC
Views: 540
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.