CVE-2018-17847

golang-org-x-net-html: index out of range in (*nodeStack).pop in node.go causes runtime panic during html.Parse() call

Published Oct 1, 2018 CVSS 3.1 · 7.5 High EPSS 2.4% KEV · Not listed
Description
The html package (aka x/net/html) through 2018-09-25 in Go mishandles <svg><template><desc><t><svg></template>, 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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-2438 The html package (aka x/net/html) through 2018-09-25 in Go mishandles <svg><template><desc><t><svg></template>, 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.
Github GHSA Github GHSA GHSA-4r78-hx75-jjj2 golang.org/x/net/html has Improper Restriction of Operations within the Bounds of a Memory Buffer
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 5, 2024, 10:54 AM
Reserved
Oct 1, 2018, 12:00 AM
Status
Modified
Published
Oct 1, 2018, 8:29 AM
Modified
Jun 17, 2026, 1:46 AM
Severity
Moderate
Public date
Oct 1, 2018, 12:00 AM