CVE-2018-17143 golang.org/x/net/html has Improper Restriction of Operations within the Bounds of a Memory Buffer
A remote attacker can cause a denial of service via a panic in the Go HTML parser when processing specific malformed template tags.
- 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-17143?
CVE-2018-17143 is a high-severity denial of service vulnerability in Fedoraproject Fedora, published on 17 Sep 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-17 in Go mishandles <template><tBody><isindex/action=0>, leading to a "panic: runtime error" in inBodyIM in parse.go during an html.Parse call.
Weakness: CWE-119
Which versions are affected by CVE-2018-17143?
3 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-20180921000356-2f5d2388922f |
golang.org/x/net Go | All versions | 0.0.0-20180921000356-2f5d2388922f |
golang.org/x/net Go | All versions | 0.0.0-20180921000356-2f5d2388922f |
Products include Fedoraproject Fedora, Golang Net.
How do I fix CVE-2018-17143?
Upgrade golang.org/x/net to 0.0.0-20180921000356-2f5d2388922f 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-17143 being exploited?
There is no known exploitation of CVE-2018-17143 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as GHSA-fcf9-6fv2-fc5v, GO-2022-0193.