PT-2025-44651 · Python+9 · Os.Path.Expandvars+9
CVE-2025-6075
·
Published
2025-06-28
·
Updated
2026-07-31
CVSS v3.1
5.5
Medium
| Vector | AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
Python (affected versions not specified)
Description
A performance degradation issue exists in the
os.path.expandvars() function. When the function processes specially crafted, user-controlled input containing nested environment variable patterns, it exhibits quadratic time complexity. This can lead to excessive CPU usage and a denial of service (DoS) condition. The impact is limited to performance slowdown, as no code execution or data exposure occurs.Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
As a temporary workaround, avoid passing user-controlled input to the
os.path.expandvars() function.Exploit
DoS
Resource Exhaustion
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Almalinux
Centos
Debian
Linuxmint
Red Hat
Red Os
Rocky Linux
Suse
Ubuntu
Os.Path.Expandvars