Skip to content

Potential Quadratic Complexity Vulnerabilities in path Modules #136065

Closed

Description

@kexinoh

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):

  1. def expandvars(path):
  2. def expandvars(path):

    Repair Status:

Common Information:

  • CPython Version: main branch
  • Operating System: Linux
  • Credits: Finder is kexinoh (Xiangfan Wu) from QI-ANXIN Technology Research Institute.

Linked PRs

Activity

  1. added
    type-bugAn unexpected behavior, bug, or error
    stdlibStandard Library Python modules in the Lib/ directory
    3.11only security fixes
    3.12only security fixes
    3.13only security fixes
    3.14bugs and security fixes
    3.15bugs and security fixes
    on Jun 28, 2025
  2. added a commit that references this issue on Jun 28, 2025
  3. serhiy-storchaka commented on Jun 28, 2025

    @serhiy-storchaka
    Member

    checkextensions is 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).

  4. kexinoh commented on Jun 28, 2025

    @kexinoh
    Author
  5. serhiy-storchaka commented on Jun 28, 2025

    @serhiy-storchaka
    Member

    So please open a different issue for it.

  6. kexinoh commented on Jun 28, 2025

    @kexinoh
    Author

    I submitted a new issue.
    @serhiy-storchaka
    #136073

  7. 7 remaining items

  8. added 7 commits that reference this issue on Oct 31, 2025
  9. CharlieZhao95 commented on Nov 3, 2025

    @CharlieZhao95
    Contributor

    This vulnerability has been assigned to CVE-2025-6075 with a "LOW" severity.

  10. cmaloney commented on Nov 3, 2025

    @cmaloney
    Contributor

    Given this has been implemented and backported can the issue be closed? (cc: @ambv, @serhiy-storchaka )

  11. added a commit that references this issue on Dec 6, 2025
  12. added 2 commits that reference this issue on Sep 18, 2026
  13. added 2 commits that reference this issue on Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.10 (EOL)end of life3.11only security fixes3.12only security fixes3.13only security fixes3.14bugs and security fixes3.15bugs and security fixes3.9 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errortype-securityA security issue

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions