7.5high

CVE-2018-17846

x/net/html Vulnerable to DoS During HTML Parsing

Also known as GHSA-vfw5-hrgq-h5wf, GO-2020-0014

Published 8 y ago · modified 4 mo ago · JSON

CVSS
7.5
v3.1 · NVD
CISA KEV
No
not known exploited
EPSS
2.5%
percentile 85%
Public exploits
0
none known

Summary

The html package (aka x/net/html) through 2018-09-25 in Go mishandles <table><math><select><mi><select></table>, leading to an infinite loop during an html.Parse call because inSelectIM and inSelectInTableIM do not comply with a specification.

Exploit prediction (EPSS)

2.51% probability of exploitation in the next 30 days, higher than 85% of all scored CVEs.

CVSS scores

Assigned byVersionScoreVector
NVD3.17.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD2.05.0AV:N/AC:L/Au:N/C:N/I:N/A:P
GitHub3.17.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected packages

EcosystemPackageAffectedFixed in
gogolang.org/x/net
<0.0.0-20190125091013-d26f9f9a57f3
0.0.0-20190125091013-d26f9f9a57f3

Classification

Weakness
  • CWE-835 Loop with Unreachable Exit Condition

References

  • github.com /golang/go/issues/27842 · x_refsource_MISC, x_transferred
  • lists.fedoraproject.org /archives/list/package-announce%40lists.fedoraproject.org/message/LREEWY6KNLHRWFZ7OT4HVLMV · vendor-advisory, x_refsource_FEDORA, x_transferred
  • lists.fedoraproject.org /archives/list/package-announce%40lists.fedoraproject.org/message/UKRCI7WIOCOCD3H7NXWRGIRA · vendor-advisory, x_refsource_FEDORA, x_transferred
  • nvd.nist.gov /vuln/detail/CVE-2018-17846 · advisory
  • go-review.googlesource.com /c/137275 · web
  • go.dev /issue/27842 · web
  • go.googlesource.com /net/+/d26f9f9a57f3fab6a695bec0d84433c2c50f8bbf · web
  • lists.fedoraproject.org /archives/list/package-announce@lists.fedoraproject.org/message/LREEWY6KNLHRWFZ7OT4HVLMVVC · web
  • lists.fedoraproject.org /archives/list/package-announce@lists.fedoraproject.org/message/UKRCI7WIOCOCD3H7NXWRGIRABT · web
  • pkg.go.dev /vuln/GO-2020-0014 · web

Sources

vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.