CVE-2018-17142Golang Net
High 7.5 No auth needed
Follow: this CVE · Golang · Golang Net We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 2.4% probability of exploitation in 30 days · percentile 85
- Auth required
- No
- Published
- Sep 17, 2018
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-476
- 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-17 in Go mishandles <math><template><mo><template>, leading to a "panic: runtime error" in parseCurrentToken in parse.go during an html.Parse call.
What to do
- Apply the vendor's security update for Net.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | golang.org/x/net |
< 0.0.0-20180925071336-cf3bd585ca2a |
0.0.0-20180925071336-cf3bd585ca2a |
go get golang.org/x/net@v0.0.0-20180925071336-cf3bd585ca2a |
| Go | golang.org/x/net |
< 0.0.0-20180925071336-cf3bd585ca2a |
0.0.0-20180925071336-cf3bd585ca2a |
go get golang.org/x/net@v0.0.0-20180925071336-cf3bd585ca2a |
Per OSV / GitHub Advisories (GHSA-2wp2-chmh-r934, GO-2022-0192). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| golang | net | ≤ 2018-09-17 |
| fedoraproject | fedora | 28 |
| fedoraproject | fedora | 29 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Third Party Advisory
- lists.fedoraproject.org
- lists.fedoraproject.org