Skip to content
CVE PROGRAM SOURCE RECORD1.8 Low

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

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Python Software Foundation CPython

Default version status: unaffected

  • 0 to < 3.9.25affected
  • 3.10.0 to < 3.10.20affected
  • 3.11.0 to < 3.11.15affected
  • 3.12.0 to < 3.12.13affected
  • 3.13.0 to < 3.13.10affected
  • 3.14.0 to < 3.14.1affected
  • 3.15.0a1 to < 3.15.0a2affected

References