{"id":"CVE-2025-6075","aliases":["CVE-2025-6075","PSF-2025-13","BIT-LIBPYTHON-2025-6075","BIT-PYTHON-2025-6075","BIT-PYTHON-MIN-2025-6075"],"related":[],"kind":"vulnerability","state":"published","title":"Quadratic complexity in os.path.expandvars() with user-controlled template","summary":"If the value passed to os.path.expandvars() is user-controlled a \nperformance degradation is possible when expanding environment \nvariables.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"If the value passed to os.path.expandvars() is user-controlled a \nperformance degradation is possible when expanding environment \nvariables.","source":"cvelist"},{"lang":"es","text":"Si el valor pasado a os.path.expandvars() es controlado por el usuario, es posible una degradación del rendimiento al expandir variables de entorno.","source":"nvd"}],"published":"2025-10-31T16:41:34.983Z","modified":"2026-10-07T21:10:00.200Z","severity":{"scorer":"PSF","scheme":"CVSS: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","score":1.8,"rating":"LOW"},"severities":[{"scorer":"PSF","scheme":"CVSS: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","score":1.8,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-400"],"affected":[{"ranges":[{"type":"python","introduced":"0","fixed":"3.9.25","status":"affected"},{"type":"python","introduced":"3.10.0","fixed":"3.10.20","status":"affected"},{"type":"python","introduced":"3.11.0","fixed":"3.11.15","status":"affected"},{"type":"python","introduced":"3.12.0","fixed":"3.12.13","status":"affected"},{"type":"python","introduced":"3.13.0","fixed":"3.13.10","status":"affected"},{"type":"python","introduced":"3.14.0","fixed":"3.14.1","status":"affected"},{"type":"python","introduced":"3.15.0a1","fixed":"3.15.0a2","status":"affected"}],"vendor":"Python Software Foundation","product":"CPython","repo":"https://github.com/python/cpython","source":"cvelist"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"2e6150adccaaf5bd95d4c19dfd04a36e0b325d8c"},{"type":"git","status":"affected","fixed":"631ba3407e3348ccd56ce5160c4fb2c5dc5f4d84"},{"type":"git","status":"affected","fixed":"892747b4cf0f95ba8beb51c0d0658bfaa381ebca"},{"type":"git","status":"affected","fixed":"9ab89c026aa9611c4b0b67c288b8303a480fe742"},{"type":"git","status":"affected","fixed":"c8a5f3435c342964e0a432cc9fb448b7dbecd1ba"},{"type":"git","status":"affected","fixed":"f029e8db626ddc6e3a3beea4eff511a71aaceb5c"},{"type":"git","status":"affected","fixed":"5dceb93486176e6b4a6d9754491005113eb23427"}],"repo":"https://github.com/python/cpython","source":"psf"},{"ranges":[{"status":"affected","fixed":"3.9.0"},{"status":"affected","introduced":"3.13.1","fixed":"3.13.11"},{"status":"affected","introduced":"3.14.0","fixed":"3.14.1"},{"status":"affected","version":"3.15.0"}],"vendor":"python","product":"python","cpe":"cpe:2.3:a:python:python:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.9.25"},{"type":"semver","introduced":"3.10.0","status":"affected","fixed":"3.10.20"},{"type":"semver","introduced":"3.11.0","status":"affected","fixed":"3.11.15"},{"type":"semver","introduced":"3.12.0","status":"affected","fixed":"3.12.13"},{"type":"semver","introduced":"3.13.0","status":"affected","fixed":"3.13.10"},{"type":"semver","introduced":"3.14.0","status":"affected","fixed":"3.14.1"}],"ecosystem":"Bitnami","package":"libpython","purl":"pkg:bitnami/libpython","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.9.25"},{"type":"semver","introduced":"3.10.0","status":"affected","fixed":"3.10.20"},{"type":"semver","introduced":"3.11.0","status":"affected","fixed":"3.11.15"},{"type":"semver","introduced":"3.12.0","status":"affected","fixed":"3.12.13"},{"type":"semver","introduced":"3.13.0","status":"affected","fixed":"3.13.10"},{"type":"semver","introduced":"3.14.0","status":"affected","fixed":"3.14.1"}],"ecosystem":"Bitnami","package":"python","purl":"pkg:bitnami/python","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.9.25"},{"type":"semver","introduced":"3.10.0","status":"affected","fixed":"3.10.20"},{"type":"semver","introduced":"3.11.0","status":"affected","fixed":"3.11.15"},{"type":"semver","introduced":"3.12.0","status":"affected","fixed":"3.12.13"},{"type":"semver","introduced":"3.13.0","status":"affected","fixed":"3.13.10"},{"type":"semver","introduced":"3.14.0","status":"affected","fixed":"3.14.1"}],"ecosystem":"Bitnami","package":"python-min","purl":"pkg:bitnami/python-min","source":"bitnami"}],"references":[{"url":"https://github.com/python/cpython/issues/136065","tags":["advisory","issue-tracking","report","vendor-advisory"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/IUP5QJ6D4KK6ULHOMPC7DPNKRYQTQNLA/","tags":["advisory","third-party-advisory","vendor-advisory"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/2e6150adccaaf5bd95d4c19dfd04a36e0b325d8c","tags":["fix","patch"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/631ba3407e3348ccd56ce5160c4fb2c5dc5f4d84","tags":["fix","patch"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/892747b4cf0f95ba8beb51c0d0658bfaa381ebca","tags":["fix","patch"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/9ab89c026aa9611c4b0b67c288b8303a480fe742","tags":["fix","patch"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/c8a5f3435c342964e0a432cc9fb448b7dbecd1ba","tags":["fix","patch"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/f029e8db626ddc6e3a3beea4eff511a71aaceb5c","tags":["fix","patch"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/5dceb93486176e6b4a6d9754491005113eb23427","tags":["fix","patch"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-6075","tags":["web"],"sources":["bitnami"]}],"credits":[],"assigner":"PSF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-31T17:54:46.289Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-6075","url":"https://www.cve.org/CVERecord?id=CVE-2025-6075","licence":"CVE Terms of Use","modified":"2026-07-31T14:01:32.417Z"},{"source":"psf","name":"Python Software Foundation","id":"PSF-2025-13","url":"https://osv.dev/vulnerability/PSF-2025-13","licence":"CC-BY-4.0","modified":"2025-12-02T13:52:17.603Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-6075","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-6075","licence":"Public domain","modified":"2026-10-07T21:10:00.200Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-LIBPYTHON-2025-6075","url":"https://osv.dev/vulnerability/BIT-LIBPYTHON-2025-6075","licence":"Apache-2.0","modified":"2026-09-10T16:01:42.131Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PYTHON-2025-6075","url":"https://osv.dev/vulnerability/BIT-PYTHON-2025-6075","licence":"Apache-2.0","modified":"2026-09-10T16:01:48.357Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PYTHON-MIN-2025-6075","url":"https://osv.dev/vulnerability/BIT-PYTHON-MIN-2025-6075","licence":"Apache-2.0","modified":"2026-09-10T16:01:24.117Z"}],"updatedAt":"2026-11-25T22:59:07.096Z","epss":{"score":0.00149,"percentile":0.04346,"date":"2026-12-01T12:00:22.000Z"}}