CVE-2025-6069

HTMLParser quadratic complexity when processing malformed inputs

Published Jun 17, 2025 CVSS 3.1 · 4.3 Medium EPSS < 1% KEV · Not listed
Description
The html.parser.HTMLParser class had worse-case quadratic complexity when processing certain crafted malformed inputs potentially leading to amplified denial-of-service.

Analysis

AI-generated

Technical impact

The vulnerability resides in the html.parser.HTMLParser class, which exhibits worse‑case quadratic complexity when handling certain malformed inputs. Crafted data can cause the parser to consume excessive time and memory, leading to a denial‑of‑service condition. This weakness is classified as CWE-1333 and does not directly enable code execution or data exfiltration.

Affected Systems

The affected product is CPython from the Python Software Foundation. No specific version ranges are listed in the CNA data, so the impact potentially applies to all releases that have not incorporated the fixing commits referenced in the advisory.

Risk and Exploitability

The CVSS score of 4.3 indicates a medium impact with limited exploitation scope. The EPSS score of less than 1% suggests a very low likelihood of current exploitation. The CVE is not listed in the CISA KEV catalog, further indicating a low urgency. Based on the description, the attack likely requires an attacker to supply crafted HTML input to a CPython process that performs parsing – a scenario that could arise in web services or content‑handling applications. No privilege escalation or remote code execution is enabled by this flaw.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update to a Python release that contains the HTMLParser fix
  • If an update cannot be applied immediately, validate or sanitize incoming HTML data before invoking HTMLParser
  • Throttle or rate‑limit requests that trigger HTML parsing to mitigate potential denial‑of‑service impact

Generated by OpenCVE AI on April 22, 2026 at 11:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4354-1 pypy3 security update
Debian DLA Debian DLA DLA-4445-1 python3.9 security update
Debian DLA Debian DLA DLA-4458-1 python-django security update
Debian DLA Debian DLA DLA-4484-1 python-django security update
EUVD EUVD EUVD-2025-18496 The html.parser.HTMLParser class had worse-case quadratic complexity when processing certain crafted malformed inputs potentially leading to amplified denial-of-service.
Ubuntu USN Ubuntu USN USN-7710-1 Python vulnerabilities
History
Type Values Removed Values Added
References
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description The html.parser.HTMLParser class had worse-case quadratic complexity when processing certain crafted malformed inputs potentially leading to amplified denial-of-service.
Title HTMLParser quadratic complexity when processing malformed inputs
Weaknesses CWE-1333
References
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L'}

Weaknesses
  • CWE-1333

    Inefficient Regular Expression Complexity

Sources

Status
PUBLISHED
Assigner
PSF
Published
Updated
Jul 31, 2026, 2:01 PM
Reserved
Jun 13, 2025, 2:05 PM
Status
Deferred
Published
Jun 17, 2025, 2:15 PM
Modified
Jul 31, 2026, 2:16 PM
Severity
Moderate
Public date
Jun 17, 2025, 1:39 PM