{"id":"BIT-python-2025-6075","summary":"Quadratic complexity in os.path.expandvars() with user-controlled template","details":"If the value passed to os.path.expandvars() is user-controlled a \nperformance degradation is possible when expanding environment \nvariables.","aliases":["BIT-libpython-2025-6075","BIT-python-min-2025-6075","CVE-2025-6075","PSF-2025-13"],"modified":"2026-09-10T16:01:48.357694026Z","published":"2025-12-05T11:13:34.373Z","database_specific":{"severity":"Medium","cpes":["cpe:2.3:a:python:python:*:*:*:*:*:*:*:*"]},"references":[{"type":"FIX","url":"https://github.com/python/cpython/commit/2e6150adccaaf5bd95d4c19dfd04a36e0b325d8c"},{"type":"FIX","url":"https://github.com/python/cpython/commit/5dceb93486176e6b4a6d9754491005113eb23427"},{"type":"FIX","url":"https://github.com/python/cpython/commit/631ba3407e3348ccd56ce5160c4fb2c5dc5f4d84"},{"type":"FIX","url":"https://github.com/python/cpython/commit/892747b4cf0f95ba8beb51c0d0658bfaa381ebca"},{"type":"FIX","url":"https://github.com/python/cpython/commit/9ab89c026aa9611c4b0b67c288b8303a480fe742"},{"type":"FIX","url":"https://github.com/python/cpython/commit/c8a5f3435c342964e0a432cc9fb448b7dbecd1ba"},{"type":"FIX","url":"https://github.com/python/cpython/commit/f029e8db626ddc6e3a3beea4eff511a71aaceb5c"},{"type":"ADVISORY","url":"https://github.com/python/cpython/issues/136065"},{"type":"ADVISORY","url":"https://mail.python.org/archives/list/security-announce@python.org/thread/IUP5QJ6D4KK6ULHOMPC7DPNKRYQTQNLA/"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-6075"}],"affected":[{"package":{"name":"python","ecosystem":"Bitnami","purl":"pkg:bitnami/python"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.9.25"},{"introduced":"3.10.0"},{"fixed":"3.10.20"},{"introduced":"3.11.0"},{"fixed":"3.11.15"},{"introduced":"3.12.0"},{"fixed":"3.12.13"},{"introduced":"3.13.0"},{"fixed":"3.13.10"},{"introduced":"3.14.0"},{"fixed":"3.14.1"}]}],"database_specific":{"source":"https://github.com/bitnami/vulndb/tree/main/data/python/BIT-python-2025-6075.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}],"schema_version":"1.9.0"}