Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. golang.org/x/net
  4. ›
  5. CVE-2018-17846

CVE-2018-17846: Loop with Unreachable Exit Condition ('Infinite Loop')

September 25, 2023

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

References

  • github.com/advisories/GHSA-vfw5-hrgq-h5wf
  • github.com/golang/go/issues/27842
  • go-review.googlesource.com/c/137275
  • go.dev/issue/27842
  • go.googlesource.com/net/+/d26f9f9a57f3fab6a695bec0d84433c2c50f8bbf
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LREEWY6KNLHRWFZ7OT4HVLMVVCGGUHON/
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UKRCI7WIOCOCD3H7NXWRGIRABTQOZOBK/
  • nvd.nist.gov/vuln/detail/CVE-2018-17846
  • pkg.go.dev/vuln/GO-2020-0014

Code Behaviors & Features

Detect and mitigate CVE-2018-17846 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.0.0-20190125091013-d26f9f9a57f3

Fixed versions

  • 0.0.0-20190125091013-d26f9f9a57f3

Solution

Upgrade to version 0.0.0-20190125091013-d26f9f9a57f3 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')

Source file

go/golang.org/x/net/CVE-2018-17846.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:01 +0000.