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

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

May 13, 2022 (updated February 23, 2023)

The html package (aka x/net/html) through 2018-09-25 in Go mishandles , leading to a “panic: runtime error” (index out of range) in (*nodeStack).pop in node.go, called from (*parser).clearActiveFormattingElements, during an html.Parse call.

References

  • github.com/advisories/GHSA-4r78-hx75-jjj2
  • github.com/golang/go/issues/27846
  • go.dev/cl/159397
  • go.dev/issue/27846
  • go.googlesource.com/net/+/4b62a64f59f73840b9ab79204c94fee61cd1ba2c
  • 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-17847
  • pkg.go.dev/vuln/GO-2022-0197

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.0.0-20190125002852-4b62a64f59f7

Fixed versions

  • 0.0.0-20190125002852-4b62a64f59f7

Solution

Upgrade to version 0.0.0-20190125002852-4b62a64f59f7 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/CVE-2018-17847.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:17:08 +0000.