CVE-2018-17848: golang.org/x/net/html Improper Validation of Array Index vulnerability
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.76531%
CWE
Published
5/13/2022
Updated
5/20/2024
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
golang.org/x/net | go | < 0.0.0-20190125002852-4b62a64f59f7 | 0.0.0-20190125002852-4b62a64f59f7 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability manifests in stack pop operations during HTML parsing. Both stack implementations (insertionModeStack and nodeStack) show panic traces in the provided crash reports. The core issue is lack of length validation before stack manipulation, which would appear in profiling as repeated calls to these pop methods followed by panic. The CVE description explicitly calls out insertionModeStack.pop
, while the GitHub issue demonstrates nodeStack.pop
failures with different HTML inputs.