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

CVE-2018-17143: Improper Restriction of Operations within the Bounds of a Memory Buffer

May 13, 2022 (updated February 8, 2023)

The html package (aka x/net/html) through 2018-09-17 in Go mishandles <isindex/action=0>, leading to a “panic: runtime error” in inBodyIM in parse.go during an html.Parse call.

References

  • github.com/advisories/GHSA-fcf9-6fv2-fc5v
  • github.com/golang/go/issues/27704
  • go-review.googlesource.com/c/net/+/136575
  • go.dev/issue/27704
  • go.googlesource.com/net/+/2f5d2388922f370f4355f327fcf4cfe9f5583908
  • 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-17143
  • pkg.go.dev/vuln/GO-2022-0193

Code Behaviors & Features

Detect and mitigate CVE-2018-17143 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-20180921000356-2f5d2388922f

Fixed versions

  • 0.0.0-20180921000356-2f5d2388922f

Solution

Upgrade to version 0.0.0-20180921000356-2f5d2388922f 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-119: Improper Restriction of Operations within the Bounds of a Memory Buffer

Source file

go/golang.org/x/net/html/CVE-2018-17143.yml

Spotted a mistake? Edit the file on GitLab.

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

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