{"id":"CVE-2018-17848","aliases":["BELL-CVE-2018-17848","EUVD-2022-4626","GHSA-4r78-hx75-jjj2","GHSA-mv93-wvcp-7m7r","GO-2022-0197"],"status":"published","title":"golang.org/x/net/html Improper Validation of Array Index vulnerability","description":"The html package (aka x/net/html) through 2018-09-25 in Go mishandles \u003cmath\u003e\u003ctemplate\u003e\u003cmn\u003e\u003cb\u003e\u003c/template\u003e, leading to a \"panic: runtime error\" (index out of range) in (*insertionModeStack).pop in node.go, called from inHeadIM, during an html.Parse call.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.02234,"percentile":0.82902,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-119","CWE-129"],"published":"2018-10-01T08:00:00Z","modified":"2026-09-10T03:49:23Z","fixes":[{"ecosystem":"Go","package":"golang.org/x/net","fixed_in":["0.0.0-20190125002852-4b62a64f59f7"],"sources":["ghsa"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"golang.org/x/net","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.0.0-20190125002852-4b62a64f59f7"}]}]},{"source":"osv","ecosystem":"Go","package":"golang.org/x/net","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.0.0-20190125002852-4b62a64f59f7"}]}],"bundled":2},{"source":"osv","ecosystem":"Go","package":"golang.org/x/net","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.0.0-20190125002852-4b62a64f59f7"}]}],"bundled":2},{"source":"osv","ecosystem":"Go","package":"golang.org/x/net","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.0.0-20190125002852-4b62a64f59f7"}]}],"bundled":2}],"products":[{"vendor":"fedoraproject","product":"fedora"},{"vendor":"golang","product":"net"}],"references":[{"url":"https://github.com/golang/go/issues/27846","tags":["x_refsource_MISC","x_transferred","Exploit","Vendor Advisory","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LREEWY6KNLHRWFZ7OT4HVLMVVCGGUHON/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UKRCI7WIOCOCD3H7NXWRGIRABTQOZOBK/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-17848","tags":["advisory"]},{"url":"https://go.dev/cl/159397","tags":["web","fix"]},{"url":"https://go.dev/issue/27846","tags":["web","report"]},{"url":"https://go.googlesource.com/net/+/4b62a64f59f73840b9ab79204c94fee61cd1ba2c","tags":["web","fix"]},{"url":"https://pkg.go.dev/vuln/GO-2022-0197","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LREEWY6KNLHRWFZ7OT4HVLMVVCGGUHON","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UKRCI7WIOCOCD3H7NXWRGIRABTQOZOBK","tags":["web"]},{"url":"https://github.com/advisories/GHSA-mv93-wvcp-7m7r"},{"url":"https://docs.bell-sw.com/security/cves/CVE-2018-17848","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-17847","tags":["advisory"]},{"url":"https://github.com/golang/go","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2018-17848","description":"The html package (aka x/net/html) through 2018-09-25 in Go mishandles \u003cmath\u003e\u003ctemplate\u003e\u003cmn\u003e\u003cb\u003e\u003c/template\u003e, leading to a \"panic: runtime error\" (index out of range) in (*insertionModeStack).pop in node.go, called from inHeadIM, during an html.Parse call.","status":"published","published":"2018-10-01T08:00:00Z","modified":"2024-08-05T10:54:10.748Z","updated_at":"2026-11-02T14:35:07.672841Z"}],"euvd":[{"id":"EUVD-2022-4626","description":"The html package (aka x/net/html) through 2018-09-25 in Go mishandles \u003cmath\u003e\u003ctemplate\u003e\u003cmn\u003e\u003cb\u003e\u003c/template\u003e, leading to a \"panic: runtime error\" (index out of range) in (*insertionModeStack).pop in node.go, called from inHeadIM, during an html.Parse call.","status":"published","published":"2018-10-01T08:00:00Z","modified":"2024-08-05T10:54:10Z","updated_at":"2026-11-03T02:39:37.709725Z"}],"ghsa":[{"id":"GHSA-mv93-wvcp-7m7r","title":"golang.org/x/net/html Improper Validation of Array Index vulnerability","description":"The html package (aka `x/net/html`) through 2018-09-25 in Go mishandles \u003cmath\u003e\u003ctemplate\u003e\u003cmn\u003e\u003cb\u003e\u003c/template\u003e, leading to a \"panic: runtime error\" (index out of range) in (*insertionModeStack).pop in node.go, called from inHeadIM, during an html.Parse call.","status":"published","published":"2022-05-13T01:26:08Z","modified":"2024-05-20T21:13:59Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-129"],"updated_at":"2026-11-02T14:37:50.750599Z"}],"nvd":[{"id":"CVE-2018-17848","description":"The html package (aka x/net/html) through 2018-09-25 in Go mishandles \u003cmath\u003e\u003ctemplate\u003e\u003cmn\u003e\u003cb\u003e\u003c/template\u003e, leading to a \"panic: runtime error\" (index out of range) in (*insertionModeStack).pop in node.go, called from inHeadIM, during an html.Parse call.","status":"published","published":"2018-10-01T08:29:02.303Z","modified":"2026-06-17T01:46:23.757Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-129"],"updated_at":"2026-11-02T14:04:42.52179Z"}],"osv":[{"id":"BELL-CVE-2018-17848","title":"CVE-2018-17848 does not affect BellSoft software","status":"withdrawn","published":"2018-10-01T08:29:00Z","modified":"2026-01-26T09:46:06.511723Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:28:14.701973Z"},{"id":"GHSA-4r78-hx75-jjj2","title":"golang.org/x/net/html has Improper Restriction of Operations within the Bounds of a Memory Buffer","description":"The html package (aka `x/net/html`) through 2018-09-25 in Go mishandles `\u003csvg\u003e\u003ctemplate\u003e\u003cdesc\u003e\u003ct\u003e\u003csvg\u003e\u003c/template\u003e`, 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.","status":"published","published":"2022-05-13T01:19:29Z","modified":"2026-09-10T03:49:19.734133928Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-119"],"updated_at":"2026-11-02T15:46:37.528068Z"},{"id":"GHSA-mv93-wvcp-7m7r","title":"golang.org/x/net/html Improper Validation of Array Index vulnerability","description":"The html package (aka `x/net/html`) through 2018-09-25 in Go mishandles \u003cmath\u003e\u003ctemplate\u003e\u003cmn\u003e\u003cb\u003e\u003c/template\u003e, leading to a \"panic: runtime error\" (index out of range) in (*insertionModeStack).pop in node.go, called from inHeadIM, during an html.Parse call.","status":"published","published":"2022-05-13T01:26:08Z","modified":"2026-09-10T03:49:23.896743505Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-129"],"updated_at":"2026-11-02T15:46:52.170928Z"},{"id":"GO-2022-0197","title":"Panic when parsing certain inputs in golang.org/x/net/html","description":"The Parse function can panic on some invalid inputs.\n\nFor example, the Parse function panics on the input \"\u003csvg\u003e\u003ctemplate\u003e\u003cdesc\u003e\u003ct\u003e\u003csvg\u003e\u003c/template\u003e\".","status":"published","published":"2022-07-01T20:15:19Z","modified":"2026-02-04T04:06:39.203335Z","updated_at":"2026-11-02T15:47:00.604718Z"}]}}
