{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2023-42821","published":"2023-09-22T17:15:14.990000Z","last_modified":"2026-06-17T06:24:35.577000Z","status":"Modified","cvss":{"version":"3.1","score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-125"],"cpes":[{"criteria":"cpe:2.3:a:gomarkdown:markdown:-:*:*:*:*:go:*:*","part":"a","vendor":"gomarkdown","product":"markdown"}],"cpes_truncated":false,"vendors":["gomarkdown"],"products":["gomarkdown/markdown"],"ssvc":{"exploitation":"poc","automatable":"yes","technical_impact":"partial"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-m9xq-6h2j-65r2","ecosystem":"Go","name":"github.com/gomarkdown/markdown","purl":"pkg:golang/github.com/gomarkdown/markdown","ranges":[{"introduced":"0","fixed":"0.0.0-20230922105210-14b16010c2ee"}],"versions":[],"versions_truncated":false},{"advisory":"GO-2023-2074","ecosystem":"Go","name":"github.com/gomarkdown/markdown","purl":"pkg:golang/github.com/gomarkdown/markdown","ranges":[{"introduced":"0","fixed":"0.0.0-20230922105210-14b16010c2ee"}],"versions":[],"versions_truncated":false}],"severity":"high","priority_score":60,"links":{"html_es":"/es/cve/CVE-2023-42821/","html_en":"/en/cve/CVE-2023-42821/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-42821","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-42821"},"untrusted":{"vendor_name":"Gomarkdown","product_name":"Markdown","desc_en":"The package `github.com/gomarkdown/markdown` is a Go library for parsing Markdown text and rendering as HTML. Prior to pseudoversion `0.0.0-20230922105210-14b16010c2ee`, which corresponds with commit `14b16010c2ee7ff33a940a541d993bd043a88940`, parsing malformed markdown input with parser that uses parser.Mmark extension could result in out-of-bounds read vulnerability. To exploit the vulnerability, parser needs to have `parser.Mmark` extension set. The panic occurs inside the `citation.go` file on the line 69 when the parser tries to access the element past its length. This can result in a denial of service. Commit `14b16010c2ee7ff33a940a541d993bd043a88940`/pseudoversion `0.0.0-20230922105210-14b16010c2ee` contains a patch for this issue.","affected":[{"untrusted_vendor":"gomarkdown","untrusted_product":"markdown"}],"references":[{"url":"https://github.com/gomarkdown/markdown/blob/7478c230c7cd3e7328803d89abe591d0b61c41e4/parser/citation.go#L69","tags":["Product"]},{"url":"https://github.com/gomarkdown/markdown/commit/14b16010c2ee7ff33a940a541d993bd043a88940","tags":["Patch"]},{"url":"https://github.com/gomarkdown/markdown/security/advisories/GHSA-m9xq-6h2j-65r2","tags":["Exploit","Vendor Advisory"]}]}}