CVE-2018-17848 golang.org/x/net/html Improper Validation of Array Index vulnerability
A crafted HTML input causes a runtime panic in the Go html package, leading to a denial of service for applications using the parser.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2018-17848?
CVE-2018-17848 is a high-severity denial of service vulnerability in Fedoraproject Fedora, published on 1 Oct 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The html package (aka x/net/html) through 2018-09-25 in Go mishandles <math><template><mn><b></template>, leading to a "panic: runtime error" (index out of range) in (*insertionModeStack).pop in node.go, called from inHeadIM, during an html.Parse call.
Weakness: CWE-129
Which versions are affected by CVE-2018-17848?
2 open source packages ship an affected version, including golang.org/x/net. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
golang.org/x/net Go | All versions | 0.0.0-20190125002852-4b62a64f59f7 |
golang.org/x/net Go | All versions | 0.0.0-20190125002852-4b62a64f59f7 |
Products include Fedoraproject Fedora, Golang Net.
How do I fix CVE-2018-17848?
Upgrade golang.org/x/net to 0.0.0-20190125002852-4b62a64f59f7 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2018-17848 being exploited?
There is no known exploitation of CVE-2018-17848 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as GHSA-mv93-wvcp-7m7r.