CVE-2024-45338 — net/html
CVE-2024-45338 is a CWE-1333 vulnerability in golang.org/x/net/html. A fix is available for golang.org/x/net/html — see the affected versions and patch details below.
Non-linear parsing of case-insensitive content in golang.org/x/net/html
Exploitation Status
No confirmed exploitation observed yet
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2024-45338.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
Real-World Exposure
golang.org/x/net/htmlReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.
Description
An attacker can craft an input to the Parse functions that would be processed non-linearly with respect to its length, resulting in extremely slow parsing. This could cause a denial of service.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | golang.org/x/net/html | all versions | 0.33.0go get golang.org/x/net/html@v0.33.0 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for golang.org/x/net/html, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update golang.org/x/net/html to 0.33.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2024-45338 is resolved across your whole dependency graph.
Workarounds
Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
This vulnerability is rated as an Important severity because an attacker can craft malicious input that causes the parsing functions to process data non-linearly, resulting in significant delays which leads to a denial of service by exhausting system resources.
| Product | Fixed in | Advisory |
|---|---|---|
| Cryostat 3 on RHEL 8 | cryostat-tech-preview/cryostat-db-rhel8:3.0.1-16 | RHSA-2025:0224 |
| gatekeeper 3.14 for RHEL 9 | gatekeeper/gatekeeper-operator-bundle:v3.14.3-3 | RHSA-2025:1333 |
| gatekeeper 3.15 for RHEL 9 | gatekeeper/gatekeeper-operator-bundle:v3.15.3-2 | RHSA-2025:1332 |
| gatekeeper 3.17 for RHEL 9 | gatekeeper/gatekeeper-operator-bundle:v3.17.1-6 | RHSA-2025:1331 |
| LVMS-4.12-RHEL-8 | lvms4/lvms-must-gather-rhel8:v4.12.9-10 | RHBA-2025:0718 |
| LVMS-4.14-RHEL-9 | lvms4/lvms-must-gather-rhel9:v4.14.12-7 | RHBA-2025:1169 |
| LVMS-4.15-RHEL-9 | lvms4/lvms-must-gather-rhel9:v4.15.10-3 | RHBA-2025:0680 |
| LVMS-4.16-RHEL-9 | lvms4/lvms-must-gather-rhel9:v4.16.7-2 | RHBA-2025:0681 |
Frequently Asked Questions
Is CVE-2024-45338 in your dependencies?
Find it across Go, including transitive dependencies.