Repository navigation
Potential Quadratic Complexity Vulnerabilities in path Modules #136065
Copy link
Copy link
Closed
Labels
3.10 (EOL)end of lifeend of life3.11only security fixesonly security fixes3.12only security fixesonly security fixes3.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixes3.15bugs and security fixesbugs and security fixes3.9 (EOL)end of lifeend of lifestdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or errortype-securityA security issueA security issue
Description
Bug Description:
A series of simple quadratic complexity vulnerabilities has been identified. After confirmation by CPython's security team, since these DOS vulnerabilities pose a low threat and are relatively tedious to exploit, we can directly initiate requests in issues to seek assistance from the community for fixes.
Vulnerability Locations (All Fixed):
- Vulnerabilities have been fixed in gh-136065: Fix quadratic complexity in os.path.expandvars() #134952 by @serhiy-storchaka and @Wulian233.
Common Information:
- CPython Version: main branch
- Operating System: Linux
- Credits: Finder is kexinoh (Xiangfan Wu) from QI-ANXIN Technology Research Institute.
Linked PRs
- gh-136065: Fix quadratic complexity in os.path.expandvars() #134952
- [3.9] gh-136065: Fix quadratic complexity in os.path.expandvars() (GH-134952) #140839
- [3.14] gh-136065: Fix quadratic complexity in os.path.expandvars() (GH-134952) #140844
- [3.13] gh-136065: Fix quadratic complexity in os.path.expandvars() (GH-134952) #140845
- [3.12] gh-136065: Fix quadratic complexity in os.path.expandvars() (GH-134952) #140847
- [3.11] gh-136065: Fix quadratic complexity in os.path.expandvars() (GH-134952) #140848
- [3.10] gh-136065: Fix quadratic complexity in os.path.expandvars() (GH-134952) #140851
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
3.10 (EOL)end of lifeend of life3.11only security fixesonly security fixes3.12only security fixesonly security fixes3.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixes3.15bugs and security fixesbugs and security fixes3.9 (EOL)end of lifeend of lifestdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or errortype-securityA security issueA security issue
Activity
Move to pythongh-136065.
serhiy-storchaka commentedon Jun 28, 2025
checkextensionsis different issue. Even if there is some similarity, there are many important differences (for example, the code contains other bug and is even prone to infinite loop).kexinoh commentedon Jun 28, 2025
serhiy-storchaka commentedon Jun 28, 2025
So please open a different issue for it.
kexinoh commentedon Jun 28, 2025
I submitted a new issue.
@serhiy-storchaka
#136073
7 remaining items
[3.11] pythongh-136065: Fix quadratic complexity in os.path.expandvar…
[3.10] pythongh-136065: Fix quadratic complexity in os.path.expandvar…
[3.14] gh-136065: Fix quadratic complexity in os.path.expandvars() (G…
[3.12] gh-136065: Fix quadratic complexity in os.path.expandvars() (G…
[3.10] gh-136065: Fix quadratic complexity in os.path.expandvars() (G…
[3.13] gh-136065: Fix quadratic complexity in os.path.expandvars() (G…
[3.11] gh-136065: Fix quadratic complexity in os.path.expandvars() (G…
CharlieZhao95 commentedon Nov 3, 2025
This vulnerability has been assigned to CVE-2025-6075 with a "LOW" severity.
cmaloney commentedon Nov 3, 2025
Given this has been implemented and backported can the issue be closed? (cc: @ambv, @serhiy-storchaka )
pythongh-136065: Fix quadratic complexity in os.path.expandvars() (py…
[CVE-2025-6075] Fix quadratic complexity in os.path.expandvars()
[CVE-2025-6075] Fix quadratic complexity in os.path.expandvars()
[CVE-2025-6075] Fix quadratic complexity in os.path.expandvars()
[CVE-2025-6075] Fix quadratic complexity in os.path.expandvars()