{"id":"CVE-2018-17142","published":"2018-09-17T14:00:00Z","modified":"2024-08-05T10:39:59Z","title":"The html package (aka x/net/html) through 2018-09-17 in Go mishandles <math><template><mo><template>, leading to a…","vendor":null,"product":null,"tier":"tail","description":{"text":"The html package (aka x/net/html) through 2018-09-17 in Go mishandles <math><template><mo><template>, leading to a \"panic: runtime error\" in parseCurrentToken in parse.go during an html.Parse call.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02377,"percentile":0.84272,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/golang/go/issues/27702","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LREEWY6KNLHRWFZ7OT4HVLMVVCGGUHON/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UKRCI7WIOCOCD3H7NXWRGIRABTQOZOBK/","tags":["vendor-advisory","x_refsource_FEDORA"]}],"priority":{"score":16.9,"factors":[{"name":"EPSS percentile","points":16.85}]},"affected":[{"ecosystem":"Go","package":"golang.org/x/net","vulnerableRanges":["<0.0.0-20180925071336-cf3bd585ca2a"],"patched":["0.0.0-20180925071336-cf3bd585ca2a"],"from":["GHSA-2wp2-chmh-r934","GO-2022-0192"],"provenance":"source"}],"summary":{"text":"The flaw is in the html package (x/net/html) for Go, where the parser mishandles a specific sequence of math and template tags, causing a crash in the parseCurrentToken function in parse.go. An attacker who can get a crafted HTML document passed to html.Parse can trigger a \"panic: runtime error\" that crashes the process, with no further conditions beyond supplying that input.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:33:12Z"},"euvd":{"id":"EUVD-2022-2066","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2018-17075","published":"2018-09-16","fixed":"0.0.0-20180816102801-aaf60122140d","kev":false},{"cve":"CVE-2018-17143","published":"2018-09-17","fixed":"0.0.0-20180921000356-2f5d2388922f","kev":false,"link":{"from":"CVE-2018-17143","to":"CVE-2018-17142","relation":"successor","confidence":"medium","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:golang.org/x/net","fromFixed":"0.0.0-20180921000356-2f5d2388922f","toFixed":"0.0.0-20180925071336-cf3bd585ca2a","daysApart":0},{"kind":"similar","provenance":"machine","score":0.53,"basis":"same package + description similarity"}]}},{"cve":"CVE-2018-17142","published":"2018-09-17","fixed":"0.0.0-20180925071336-cf3bd585ca2a","kev":false},{"cve":"CVE-2018-17847","published":"2018-10-01","fixed":"0.0.0-20190125002852-4b62a64f59f7","kev":false,"link":{"from":"CVE-2018-17142","to":"CVE-2018-17847","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:golang.org/x/net","fromFixed":"0.0.0-20180925071336-cf3bd585ca2a","toFixed":"0.0.0-20190125002852-4b62a64f59f7","daysApart":14},{"kind":"similar","provenance":"machine","score":0.47,"basis":"same package + description similarity"}]}},{"cve":"CVE-2018-17848","published":"2018-10-01","fixed":"0.0.0-20190125002852-4b62a64f59f7","kev":false,"link":{"from":"CVE-2018-17142","to":"CVE-2018-17848","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:golang.org/x/net","fromFixed":"0.0.0-20180925071336-cf3bd585ca2a","toFixed":"0.0.0-20190125002852-4b62a64f59f7","daysApart":14},{"kind":"similar","provenance":"machine","score":0.58,"basis":"same package + description similarity"}]}},{"cve":"CVE-2018-17846","published":"2018-10-01","fixed":"0.0.0-20190125091013-d26f9f9a57f3","kev":false}],"package":"Go:golang.org/x/net"}}