{"id":"CVE-2025-6075","published":"2025-10-31T16:41:34Z","modified":"2026-07-31T14:01:32Z","title":"Quadratic complexity in os.path.expandvars() with user-controlled template","vendor":"Python Software Foundation","product":"CPython","tier":"tail","description":{"text":"If the value passed to os.path.expandvars() is user-controlled a \nperformance degradation is possible when expanding environment \nvariables.","provenance":"source","from":"CVE.org"},"cvss":{"score":1.8,"severity":"LOW","version":"4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00222,"percentile":0.0756,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/python/cpython/issues/136065","tags":["issue-tracking"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/IUP5QJ6D4KK6ULHOMPC7DPNKRYQTQNLA/","tags":["vendor-advisory"]},{"url":"https://github.com/python/cpython/commit/2e6150adccaaf5bd95d4c19dfd04a36e0b325d8c","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/631ba3407e3348ccd56ce5160c4fb2c5dc5f4d84","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/892747b4cf0f95ba8beb51c0d0658bfaa381ebca","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/9ab89c026aa9611c4b0b67c288b8303a480fe742","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/c8a5f3435c342964e0a432cc9fb448b7dbecd1ba","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/f029e8db626ddc6e3a3beea4eff511a71aaceb5c","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/5dceb93486176e6b4a6d9754491005113eb23427","tags":["patch"]}],"priority":{"score":2.8,"factors":[{"name":"EPSS percentile","points":1.51},{"name":"CVSS severity","points":1.26}]},"vendorSlug":"python-software-foundation","affectedVersions":[{"vendor":"Python Software Foundation","product":"CPython","versions":["< 3.9.25",">= 3.10.0, < 3.10.20",">= 3.11.0, < 3.11.15",">= 3.12.0, < 3.12.13",">= 3.13.0, < 3.13.10",">= 3.14.0, < 3.14.1",">= 3.15.0a1, < 3.15.0a2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-31T17:54:46.289107Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-37384","exploited":false,"provenance":"source"}}