CVE-2018-17143 — x/net
HIGHCVE-2018-17143 is a high-severity (CVSS 7.5) Buffer Overflow vulnerability in golang.org/x/net. 1 public exploit or proof-of-concept reference is indexed, so weaponization risk is real. A fix is available for golang.org/x/net — see the affected versions and patch details below.
golang.org/x/net/html has Improper Restriction of Operations within the Bounds of a Memory Buffer
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
golang.org/x/netReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.
Description
The html package (aka x/net/html) through 2018-09-17 in Go mishandles <template><tBody><isindex/action=0>, leading to a "panic: runtime error" in inBodyIM in parse.go during an html.Parse call.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | golang.org/x/net | all versions | 0.0.0-20180921000356-2f5d2388922fgo get golang.org/x/net@v0.0.0-20180921000356-2f5d2388922f |
Affected Products
fedorafedoraprojectnetgolangResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for golang.org/x/net, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update golang.org/x/net to 0.0.0-20180921000356-2f5d2388922f or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2018-17143 is resolved across your whole dependency graph.
Workarounds
Stop feeding it untrusted input: reject or quarantine files and payloads from unverified sources until you can upgrade, restrict accepted formats to the ones you actually need, and run the parsing or decoding step in a least-privileged sandbox or short-lived worker so a crash or corrupted read cannot reach the rest of the process.
Frequently Asked Questions
Is CVE-2018-17143 in your dependencies?
Find it across Go, including transitive dependencies.