{"id":"CVE-2018-17142","aliases":["BELL-CVE-2018-17142","EUVD-2022-2066","GHSA-2wp2-chmh-r934","GO-2022-0192"],"status":"published","title":"golang.org/x/net/html NULL Pointer Dereference vulnerability","description":"The html package (aka x/net/html) through 2018-09-17 in Go mishandles \u003cmath\u003e\u003ctemplate\u003e\u003cmo\u003e\u003ctemplate\u003e, leading to a \"panic: runtime error\" in parseCurrentToken in parse.go 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.02377,"percentile":0.83976,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-476"],"published":"2018-09-17T14:00:00Z","modified":"2026-06-17T01:45:25Z","fixes":[{"ecosystem":"Go","package":"golang.org/x/net","fixed_in":["0.0.0-20180925071336-cf3bd585ca2a"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"golang.org/x/net","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.0.0-20180925071336-cf3bd585ca2a"}]}]},{"source":"osv","ecosystem":"Go","package":"golang.org/x/net","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.0.0-20180925071336-cf3bd585ca2a"}]}]},{"source":"osv","ecosystem":"Go","package":"golang.org/x/net","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.0.0-20180925071336-cf3bd585ca2a"}]}]}],"products":[{"vendor":"fedoraproject","product":"fedora"},{"vendor":"golang","product":"net"}],"references":[{"url":"https://github.com/golang/go/issues/27702","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party 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-17142","tags":["advisory"]},{"url":"https://go.dev/cl/136875","tags":["web","fix"]},{"url":"https://go.dev/issue/27702","tags":["web","report"]},{"url":"https://go.googlesource.com/net/+/cf3bd585ca2a5a21b057abd8be7eea2204af89d0","tags":["web","fix"]},{"url":"https://pkg.go.dev/vuln/GO-2022-0192","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-2wp2-chmh-r934"},{"url":"https://docs.bell-sw.com/security/cves/CVE-2018-17142","tags":["advisory"]},{"url":"https://github.com/golang/go","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2018-17142","description":"The html package (aka x/net/html) through 2018-09-17 in Go mishandles \u003cmath\u003e\u003ctemplate\u003e\u003cmo\u003e\u003ctemplate\u003e, leading to a \"panic: runtime error\" in parseCurrentToken in parse.go during an html.Parse call.","status":"published","published":"2018-09-17T14:00:00Z","modified":"2024-08-05T10:39:59.563Z","updated_at":"2026-11-02T14:35:07.672841Z"}],"euvd":[{"id":"EUVD-2022-2066","description":"The html package (aka x/net/html) through 2018-09-17 in Go mishandles \u003cmath\u003e\u003ctemplate\u003e\u003cmo\u003e\u003ctemplate\u003e, leading to a \"panic: runtime error\" in parseCurrentToken in parse.go during an html.Parse call.","status":"published","published":"2018-09-17T14:00:00Z","modified":"2024-08-05T10:39:59Z","updated_at":"2026-11-03T02:39:39.229856Z"}],"ghsa":[{"id":"GHSA-2wp2-chmh-r934","title":"golang.org/x/net/html NULL Pointer Dereference vulnerability","description":"The html package (aka x/net/html) through 2018-09-17 in Go mishandles \u003cmath\u003e\u003ctemplate\u003e\u003cmo\u003e\u003ctemplate\u003e, leading to a \"panic: runtime error\" in parseCurrentToken in parse.go during an html.Parse call","status":"published","published":"2022-05-13T01:19:23Z","modified":"2024-05-20T20:48:31Z","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-476"],"updated_at":"2026-11-02T14:37:50.750599Z"}],"nvd":[{"id":"CVE-2018-17142","description":"The html package (aka x/net/html) through 2018-09-17 in Go mishandles \u003cmath\u003e\u003ctemplate\u003e\u003cmo\u003e\u003ctemplate\u003e, leading to a \"panic: runtime error\" in parseCurrentToken in parse.go during an html.Parse call.","status":"published","published":"2018-09-17T14:29:00.687Z","modified":"2026-06-17T01:45:25.19Z","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-476"],"updated_at":"2026-11-02T14:04:40.661264Z"}],"osv":[{"id":"BELL-CVE-2018-17142","title":"CVE-2018-17142 does not affect BellSoft software","status":"withdrawn","published":"2018-09-17T14:29:00Z","modified":"2026-01-26T09:48:42.029434Z","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-2wp2-chmh-r934","title":"golang.org/x/net/html NULL Pointer Dereference vulnerability","description":"The html package (aka x/net/html) through 2018-09-17 in Go mishandles \u003cmath\u003e\u003ctemplate\u003e\u003cmo\u003e\u003ctemplate\u003e, leading to a \"panic: runtime error\" in parseCurrentToken in parse.go during an html.Parse call","status":"published","published":"2022-05-13T01:19:23Z","modified":"2024-05-20T20:48:29Z","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-476"],"updated_at":"2026-11-02T15:46:35.050232Z"},{"id":"GO-2022-0192","title":"Incorrect parsing of nested templates 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 \"\u003cmath\u003e\u003ctemplate\u003e\u003cmo\u003e\u003ctemplate\u003e\".","status":"published","published":"2022-07-01T20:11:34Z","modified":"2024-05-20T16:03:47Z","updated_at":"2026-11-02T15:47:00.604718Z"}]}}
