{"id":"CVE-2023-42821","published":"2023-09-22T16:55:33Z","modified":"2024-09-24T19:27:42Z","title":"github.com/gomarkdown/markdown Out-of-bounds Read while parsing citations","vendor":"gomarkdown","product":"markdown","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01252,"percentile":0.70168,"provenance":"source"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"}],"references":[{"url":"https://github.com/gomarkdown/markdown/security/advisories/GHSA-m9xq-6h2j-65r2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gomarkdown/markdown/commit/14b16010c2ee7ff33a940a541d993bd043a88940","tags":["x_refsource_MISC"]},{"url":"https://github.com/gomarkdown/markdown/blob/7478c230c7cd3e7328803d89abe591d0b61c41e4/parser/citation.go#L69","tags":["x_refsource_MISC"]}],"priority":{"score":19.3,"factors":[{"name":"EPSS percentile","points":14.03},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"gomarkdown","affectedVersions":[{"vendor":"gomarkdown","product":"markdown","versions":["< 0.0.0-20230922105210-14b16010c2ee"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2024-09-24T19:26:08.128213Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/gomarkdown/markdown","vulnerableRanges":["<0.0.0-20230922105210-14b16010c2ee"],"patched":["0.0.0-20230922105210-14b16010c2ee"],"from":["GHSA-m9xq-6h2j-65r2","GO-2023-2074"],"provenance":"source"}],"summary":{"text":"The flaw is an out-of-bounds read in the citation parsing code (citation.go) of the gomarkdown/markdown Go library, which parses Markdown and renders it as HTML, affecting versions before pseudoversion 0.0.0-20230922105210-14b16010c2ee. An attacker can cause a denial of service by supplying malformed Markdown to a parser with the parser.Mmark extension enabled, with no authentication or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:17:31Z"},"euvd":{"id":"EUVD-2023-2549","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-gomarkdown-markdown-cve-2023-42821","children":[{"from":"CVE-2023-42821","to":"CVE-2024-44337","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/gomarkdown/markdown","fromFixed":"0.0.0-20230922105210-14b16010c2ee","toFixed":"0.0.0-20240729212818-a2a9c4f76ef5","daysApart":389},{"kind":"same-code","provenance":"machine","files":["parser/block.go"],"commits":["https://github.com/gomarkdown/markdown/commit/14b16010c2ee7ff33a940a541d993bd043a88940","https://github.com/gomarkdown/markdown/commit/a2a9c4f76ef5a5c32108e36f7c47f8d310322252"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.35,"basis":"same package + description similarity"}]}],"packageHistory":[{"cve":"CVE-2023-42821","published":"2023-09-22","fixed":"0.0.0-20230922105210-14b16010c2ee","kev":false},{"cve":"CVE-2024-44337","published":"2024-10-15","fixed":"0.0.0-20240729212818-a2a9c4f76ef5","kev":false},{"cve":"CVE-2026-40890","published":"2026-04-21","fixed":"0.0.0-20260411013819-759bbc3e3207","kev":false},{"cve":"CVE-2026-102941","published":"2026-10-16","fixed":"0.0.0-20260724235538-61af6e1e6971","kev":false}],"package":"Go:github.com/gomarkdown/markdown"}}