CVE-2025-6075: Python Software Foundation CPython · Vulnerability
Affects Python Software Foundation CPythonSource CVE Database V5
Not known to be exploited · CVSS 1.8 Low.
Data as of 26 Oct 2026, 07:57 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 4% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 31 Oct 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
PyPIcpythonpkg:pypi/cpythonOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Until an official fix is available, avoid passing untrusted or user-controlled input to os.path.expandvars() to mitigate potential performance issues.
Description
If the value passed to os.path.expandvars() is user-controlled a performance degradation is possible when expanding environment variables.
References
- github.com/python/cpython/issues/136065 (opens in a new tab)
- mail.python.org/archives/list/security-announce@python.org/thread/IUP5QJ6D4KK6ULHOMPC7DPNKRYQTQNLA/ (opens in a new tab)
- github.com/python/cpython/commit/2e6150adccaaf5bd95d4c19dfd04a36e0b325d8c (opens in a new tab)
- github.com/python/cpython/commit/631ba3407e3348ccd56ce5160c4fb2c5dc5f4d84 (opens in a new tab)
- github.com/python/cpython/commit/892747b4cf0f95ba8beb51c0d0658bfaa381ebca (opens in a new tab)
- github.com/python/cpython/commit/9ab89c026aa9611c4b0b67c288b8303a480fe742 (opens in a new tab)
- github.com/python/cpython/commit/c8a5f3435c342964e0a432cc9fb448b7dbecd1ba (opens in a new tab)
- github.com/python/cpython/commit/f029e8db626ddc6e3a3beea4eff511a71aaceb5c (opens in a new tab)
- github.com/python/cpython/commit/5dceb93486176e6b4a6d9754491005113eb23427 (opens in a new tab)