CVE-2018-17142 golang.org/x/net/html NULL Pointer Dereference vulnerability

High 7.5 Published Updated

A null pointer dereference in the Go HTML parser causes a runtime panic, leading to denial of service when processing specific malformed HTML 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-17142?

CVE-2018-17142 is a high-severity 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 <math><template><mo><template>, leading to a "panic: runtime error" in parseCurrentToken in parse.go during an html.Parse call.

Weakness: CWE-476

Which versions are affected by CVE-2018-17142?

3 open source packages ship an affected version, including golang.org/x/net. It affects 2 products.

PackageAffectedFixed in
golang.org/x/net GoAll versions0.0.0-20180925071336-cf3bd585ca2a
golang.org/x/net GoAll versions0.0.0-20180925071336-cf3bd585ca2a
golang.org/x/net GoAll versions0.0.0-20180925071336-cf3bd585ca2a

Products include Fedoraproject Fedora, Golang Net.

How do I fix CVE-2018-17142?

Upgrade golang.org/x/net to 0.0.0-20180925071336-cf3bd585ca2a or later.

Is CVE-2018-17142 being exploited?

There is no known exploitation of CVE-2018-17142 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as GHSA-2wp2-chmh-r934, GO-2022-0192.

Is CVE-2018-17142 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free