CVE-2025-6075: Quadratic complexity in os.path.expandvars() with user-controlled template

Published Oct 31, 2025
·
Updated

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

Other sources

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

Microsoft

Affected Software

9 affected componentsFixes available
Microsoft cbl2 python3 3.9.19-15
Microsoft cbl2 python3 3.9.19-16
Microsoft azl3 python3 3.12.9-5
Microsoft cbl2 python3 3.9.19-17
Microsoft azl3 python3 3.12.9-6
Python Python<3.9.0
Python Python>=3.13.1<3.13.11
Python Python>=3.14.0<3.14.1
Python Python=3.15.0-alpha1

Event History

Oct 31, 2025
CVE Published
via MITRE·04:41 PM
Data Sourced
via MITRE·04:41 PM
Description
Data Sourced
via Red Hat·05:02 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·05:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Nov 5, 2025
Data Sourced
via Microsoft·01:02 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·01:02 AM
Affected Software
Updated
via Microsoft·01:02 AM
DescriptionSeverity
Jan 24, 58256
Event
via NVD·06:33 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-6075?

CVE-2025-6075 has a high severity due to potential performance degradation caused by quadratic complexity in user-controlled inputs.

2

How do I fix CVE-2025-6075?

To mitigate CVE-2025-6075, ensure that user inputs to os.path.expandvars() are properly validated to avoid performance issues.

3

What software versions are affected by CVE-2025-6075?

CVE-2025-6075 affects several versions of Microsoft Python distributions, specifically cbl2 and azl3 Python versions.

4

Is there a known exploit for CVE-2025-6075?

As of now, there are no known exploits specifically targeting CVE-2025-6075, but the vulnerability could be leveraged in denial-of-service scenarios.

5

What are the potential impacts of CVE-2025-6075?

The primary impact of CVE-2025-6075 is reduced application performance due to inefficient processing of environment variables.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203