{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-6075","id":"CVE-2025-6075","title":"Quadratic complexity in os.path.expandvars() with user-controlled template","description":"If the value passed to os.path.expandvars() is user-controlled a \nperformance degradation is possible when expanding environment \nvariables.","descriptionLong":"If the value passed to os.path.expandvars() is user-controlled a \nperformance degradation is possible when expanding environment \nvariables.","published":"2025-10-31T16:41:34.983Z","updated":"2026-11-11T10:30:28.967367408Z","reserved":"2025-06-13T15:05:20.139Z","status":"Analyzed","rejected":false,"assigner":"PSF","metric":{"version":"4.0","score":1.8,"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","rating":"low","source":"PSF"},"metrics":[{"version":"4.0","score":1.8,"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","rating":"low","source":"PSF"},{"version":"4.0","score":1.8,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"low","source":"python.org"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"low","products":["Python Software Foundation CPython"],"affectedProducts":[{"vendor":"Python Software Foundation","product":"CPython","defaultStatus":"unaffected","versions":[{"version":"0","lessThan":"3.9.25","status":"affected","versionType":"python"},{"version":"3.10.0","lessThan":"3.10.20","status":"affected","versionType":"python"},{"version":"3.11.0","lessThan":"3.11.15","status":"affected","versionType":"python"},{"version":"3.12.0","lessThan":"3.12.13","status":"affected","versionType":"python"},{"version":"3.13.0","lessThan":"3.13.10","status":"affected","versionType":"python"},{"version":"3.14.0","lessThan":"3.14.1","status":"affected","versionType":"python"},{"version":"3.15.0a1","lessThan":"3.15.0a2","status":"affected","versionType":"python"}],"platforms":[]}],"packages":[],"cwes":["CWE-400"],"aliases":["BIT-libpython-2025-6075","BIT-python-2025-6075","BIT-python-min-2025-6075","PSF-2025-13"],"references":[{"url":"https://github.com/python/cpython/issues/136065","tags":["issue-tracking","Issue Tracking","Vendor Advisory","report"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/IUP5QJ6D4KK6ULHOMPC7DPNKRYQTQNLA/","tags":["vendor-advisory","Third Party Advisory","advisory"]},{"url":"https://github.com/python/cpython/commit/2e6150adccaaf5bd95d4c19dfd04a36e0b325d8c","tags":["patch","Patch","fix"]},{"url":"https://github.com/python/cpython/commit/631ba3407e3348ccd56ce5160c4fb2c5dc5f4d84","tags":["patch","Patch","fix"]},{"url":"https://github.com/python/cpython/commit/892747b4cf0f95ba8beb51c0d0658bfaa381ebca","tags":["patch","Patch","fix"]},{"url":"https://github.com/python/cpython/commit/9ab89c026aa9611c4b0b67c288b8303a480fe742","tags":["patch","Patch","fix"]},{"url":"https://github.com/python/cpython/commit/c8a5f3435c342964e0a432cc9fb448b7dbecd1ba","tags":["patch","Patch","fix"]},{"url":"https://github.com/python/cpython/commit/f029e8db626ddc6e3a3beea4eff511a71aaceb5c","tags":["patch","Patch","fix"]},{"url":"https://github.com/python/cpython/commit/5dceb93486176e6b4a6d9754491005113eb23427","tags":["patch","Patch","fix"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/6xxx/CVE-2025-6075.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-6075","tags":["advisory"]},{"url":"https://github.com/python/cpython","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00149,"epssPercentile":0.04195,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-6075","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-6075","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-6075","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-6075","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":["python"],"critical":[],"attention":null}