CVE-2021-33194 golang.org/x/net/html Infinite Loop vulnerability

High 7.5 Published Updated

Attackers can cause a denial of service via an infinite loop in the Go networking library's HTML 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-2021-33194?

CVE-2021-33194 is a high-severity denial of service vulnerability in Fedoraproject Fedora, published on 26 May 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

golang.org/x/net before v0.0.0-20210520170846-37e1c6afe023 allows attackers to cause a denial of service (infinite loop) via crafted ParseFragment input.

Weakness: CWE-835

Which versions are affected by CVE-2021-33194?

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

PackageAffectedFixed in
golang.org/x/net GoAll versions0.0.0-20210520170846-37e1c6afe023
golang.org/x/net GoAll versions0.0.0-20210520170846-37e1c6afe023
golang.org/x/net GoAll versions0.0.0-20210520170846-37e1c6afe023
golang BitnamiAll versions1.15.12, 1.16.4

Products include Fedoraproject Fedora, Golang Go.

How do I fix CVE-2021-33194?

Upgrade golang.org/x/net to 0.0.0-20210520170846-37e1c6afe023 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-2021-33194 being exploited?

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

All Fedoraproject Fedora vulnerabilities

Sources

Also known as BIT-golang-2021-33194, CLEANSTART-2026-GW81743, CLEANSTART-2026-NF32762, DEBIAN-CVE-2021-33194, GHSA-83g2-8m93-v3w7, GO-2021-0238 and 1 more.

Is CVE-2021-33194 in your software?

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

Check your SBOMs for free