CVE-2023-42821
A public proof of concept exists; no exploitation attested.
- Published2023-09-22
- Fixed in0.0.0-20230922105210-14b16010c2ee
- WeaknessCWE-125
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
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.
Timeline
dates in UTC- 2023-09-2217:15CVE publishedNVD
Versions per branch
OSV · NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 0.0 | < 0.0.0-20230922105210-14b16010c2ee | 0.0.0-20230922105210-14b16010c2ee | OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| — | all versions | no fix published | NVD |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- gomarkdown markdownAffected
- = < 0.0.0-20230922105210-14b16010c2eeno fix stated
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2023-09-22
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- cri-oAzure Linux:2all versions · fixed in 1.21.7-2
- golang-github-gomarkdown-markdownUbuntu:26.10all versions · no fixed version listed
- golang-github-gomarkdown-markdownUbuntu:26.04:LTSall versions · no fixed version listed
- golang-github-gomarkdown-markdownUbuntu:25.10all versions · no fixed version listed
- golang-github-gomarkdown-markdownUbuntu:24.04:LTSall versions · no fixed version listed
- golang-github-gomarkdown-markdownDebian:14all versions · fixed in 0.0~git20231115.a660076-1
- golang-github-gomarkdown-markdownDebian:13all versions · fixed in 0.0~git20231115.a660076-1
- golang-github-gomarkdown-markdownDebian:12all versions · no fixed version listed
1 more package range on OSV.dev
Vendor advisories
- CVE-2023-42821 Red Hat Product Security
gomarkdown-markdown: Out-of-bounds Read while parsing citations
Fix
- Update gomarkdown/markdown to 0.0.0-20230922105210-14b16010c2ee
Advisories and patches
- github.comPatch
- github.comVendor Advisory
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- CISA-ADP (SSVC)PoC stated2024-09-24
- PoC-in-GitHubno public repository identifiedread 2026-11-19
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionpoc2024-09-24
- CNACVSS 3.17.5known since 2026-10-23
- NVDCVSS 3.17.5read 2026-10-23
- CNAweakness (CWE)CWE-125known since 2026-10-23
- NVDweakness (CWE)CWE-125read 2026-10-23
- FIRST EPSSEPSS score1.3 %2026-11-18
- OSVaffected packages—
- GitHub AdvisoriesadvisoryHIGH2023-09-22
Identifiers
- AZL-39828same flawAzure Linux · MIT
- EUVD-2023-2549same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-m9xq-6h2j-65r2same flawGitHub Advisory Database · CC-BY-4.0
- GO-2023-2074same flawGo Vulnerability Database · CC-BY-4.0
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Published
- 2023-09-22
- Last Modified
- 2026-06-17
- NVD status
- Modified
- GitHub Advisory
- GHSA-m9xq-6h2j-65r2
Frequently asked questions
What is CVE-2023-42821?
Is CVE-2023-42821 actively exploited?
What is the CVSS score for CVE-2023-42821?
Running gomarkdown/markdown? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
- CVE-2024-44337same product
- CVE-2026-40890same productgithub.com/gomarkdown/markdown: Out-of-bounds Read in SmartypantsRenderer
- CVE-2026-102941same productgomarkdown/markdown IsSafeURL panics on short URLs
- CVE-2023-42793KEVsame week
- CVE-2023-43770KEVsame week
- CVE-2023-41993KEVsame week
- CVE-2023-41991KEVsame week
- CVE-2023-41992KEVsame week
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-m9xq-6h2j-65r2
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0