CVE-2025-6069

HTMLParser quadratic complexity when processing malformed inputs

State
Published
Severity
4.3 Medium
Published
Jun 17, 2025
Updated
Jul 31, 2026
Reserved
Jun 13, 2025

Read the record on cve.org

Description

The html.parser.HTMLParser class had worse-case quadratic complexity when processing certain crafted malformed inputs potentially leading to amplified denial-of-service.

Scores

CVSSScoreVectorSource
3.14.3 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:LPSF

Weaknesses

  • CWE-1333 Inefficient Regular Expression Complexity

Affected Products

ProductVersions
CPythonPython Software Foundation
  • before 3.9.24Affected
  • 3.10.0 to before 3.10.19Affected
  • 3.11.0 to before 3.11.14Affected
  • 3.12.0 to before 3.12.12Affected
  • 3.13.0 to before 3.13.6Affected
  • 3.14.0a1 to before 3.14.0b3Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.