Live threats

All CVEs / Golang

CVE-2018-17848Golang Net

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
2.2%
probability of exploitation in 30 days · percentile 84
Auth required
No
Published
Oct 1, 2018
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-129
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Net.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go golang.org/x/net < 0.0.0-20190125002852-4b62a64f59f7 0.0.0-20190125002852-4b62a64f59f7 go get golang.org/x/net@v0.0.0-20190125002852-4b62a64f59f7
Go golang.org/x/net < 0.0.0-20190125002852-4b62a64f59f7 0.0.0-20190125002852-4b62a64f59f7 go get golang.org/x/net@v0.0.0-20190125002852-4b62a64f59f7
Go golang.org/x/net < 0.0.0-20190125002852-4b62a64f59f7 0.0.0-20190125002852-4b62a64f59f7 go get golang.org/x/net@v0.0.0-20190125002852-4b62a64f59f7

Per OSV / GitHub Advisories (GHSA-4r78-hx75-jjj2, GHSA-mv93-wvcp-7m7r, GO-2022-0197). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
golangnet≤ 2018-09-25
fedoraprojectfedora28
fedoraprojectfedora29

Official sources

References

Links published by the sources. Open them with care.