CVE-2018-17847 golang.org/x/net/html has Improper Restriction of Operations within the Bounds of a Memory Buffer

High 7.5 Published Updated

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-17847?

CVE-2018-17847 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 <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.

Weakness: CWE-119

Which versions are affected by CVE-2018-17847?

2 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-20190125002852-4b62a64f59f7
golang.org/x/net GoAll versions0.0.0-20190125002852-4b62a64f59f7

Products include Fedoraproject Fedora, Golang Net.

How do I fix CVE-2018-17847?

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-17847 being exploited?

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

All Fedoraproject Fedora vulnerabilities

Sources

Also known as GHSA-4r78-hx75-jjj2.

Is CVE-2018-17847 in your software?

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

Check your SBOMs for free