golang/go · Security
golang.org/x/net/html has Improper Restriction of Operations within the Bounds of a Memory Buffer
- GHSA ID
- GHSA-4r78-hx75-jjj2
- CVE ID
- CVE-2018-17847
- Severity
- high
- Published
- Updated
- CVSS
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CVSS v3
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Description
The html package (aka x/net/html) through 2018-09-25 in Go mishandles <svg><template><desc><t><svg></template>, leading to a panic: runtime error (index out of range) in (*nodeStack).pop in node.go, called from (*parser).clearActiveFormattingElements, during an html.Parse call.
CWEs
- CWE-119 · Improper Restriction of Operations within the Bounds of a Memory Buffer
References
- https://nvd.nist.gov/vuln/detail/CVE-2018-17847 ↗
- https://github.com/golang/go/issues/27846 ↗
- https://go.dev/cl/159397 ↗
- https://go.dev/issue/27846 ↗
- https://go.googlesource.com/net/+/4b62a64f59f73840b9ab79204c94fee61cd1ba2c ↗
- https://pkg.go.dev/vuln/GO-2022-0197 ↗
- https://lists.fedoraproject.org/archives/list/[email protected]/message/LREEWY6KNLHRWFZ7OT4HVLMVVCGGUHON ↗
- https://lists.fedoraproject.org/archives/list/[email protected]/message/UKRCI7WIOCOCD3H7NXWRGIRABTQOZOBK ↗
- https://github.com/advisories/GHSA-4r78-hx75-jjj2 ↗