CVE-2025-6075

published 31 Oct 2025 · updated 16 Nov 2026

Quadratic complexity in os.path.expandvars() with user-controlled template

1.8LowCVSS 1.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 3.9.25, 3.10.20, 3.11.15 and 4 more.

If the value passed to os.path.expandvars() is user-controlled a performance degradation is possible when expanding environment variables.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Python Software Foundation<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.0a23.9.25, 3.10.20, 3.11.15, 3.12.13, 3.13.10, 3.14.1, 3.15.0a2

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-6075 severity on Zeptric[![CVE-2025-6075](https://zeptric.io/badge/cve/CVE-2025-6075.svg)](https://zeptric.io/cve/CVE-2025-6075)