What’s Vulnerable › Vulnerabilities

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

Description

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

Affected products

How to fix

Upgrade to a fixed version: Python 3.13.11, 3.14.1, 3.9.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-6075 or the next vulnerability affects your stack