GitHub Advisoryadvisory · Go
GHSA-mv93-wvcp-7m7r golang.org/x/net/html Improper Validation of Array Index vulnerability
HIGH
Official page ↗
- Aliases
- CVE-2018-17848
- Ecosystem
- Go
- Packages
- golang.org/x/net
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-129
- Reviewed
- 2023-02-08
Affected packages
• Go golang.org/x/net: < 0.0.0-20190125002852-4b62a64f59f7 → fixed in 0.0.0-20190125002852-4b62a64f59f7
Description
The html package (aka `x/net/html`) through 2018-09-25 in Go mishandles , leading to a "panic: runtime error" (index out of range) in (*insertionModeStack).pop in node.go, called from inHeadIM, during an html.Parse call.
Related
Alias · CVE (1)
- CVE-2018-17848 The html package (aka x/net/html) through 2018-09-25 in Go mishandles <math><template><mn><b></template>, leading to a "panic: runtime… vulnerability
Weakness · CWE (1)
- CWE-129 Improper Validation of Array Index weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2018-17848 advisory
- https://github.com/golang/go/issues/27846 web
- https://go.dev/cl/159397 web
- https://go.dev/issue/27846 web
- https://go.googlesource.com/net/+/4b62a64f59f73840b9ab79204c94fee61cd1ba2c web
- https://lists.fedoraproject.org/archives/list/[email protected]/message/LREEWY6KNLHRWFZ7OT4HVLMVVCGGUHON web
- https://lists.fedoraproject.org/archives/list/[email protected]/message/UKRCI7WIOCOCD3H7NXWRGIRABTQOZOBK web
- https://pkg.go.dev/vuln/GO-2022-0197 web