7.5

CVE-2023-42821: github.com/gomarkdown/markdown Out-of-bounds Read while parsing citations

Modified
AliasesUBUNTU-CVE-2023-42821DEBIAN-CVE-2023-42821GHSA-m9xq-6h2j-65r2
Published 22-09-2023Last modified 24-09-2024

Vulnerability summary

CVE-2023-42821 is a high (CVSS 7.5) Out-of-bounds Read vulnerability in gomarkdown markdown. EPSS estimates a 1.25% chance of exploitation in the next 30 days, higher than 69.4% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Prioritisepublic exploit

Public exploit (GitHub, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
7.5/10
010
High · v3.1 (CVE.org)
EPSS score
1.25%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Timeline

  1. 22-09-2023
    PublishedVulnerability first disclosed.
  2. 24-09-2024
    Last modifiedVulnerability information updated.

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.

CVSS metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

1.25%

Chance of exploitation in the next 30 days

Percentile

69%

Versus all other CVEs

30-day change

No change 0.00 pp

From 1.25% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Markdown

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Debian1 product
  • golang-github-gomarkdown-markdownAll versions (No fix recorded) | < 0.0~git20231115.a660076-1
Github.com/gomarkdown1 product
  • markdown< 0.0.0-20230922105210-14b16010c2ee
Gomarkdown1 product
  • markdown< 0.0.0-20230922105210-14b16010c2ee | na
Ubuntu1 product
  • golang-github-gomarkdown-markdownAll versions (No fix recorded)

4 vendors · 4 products

References

8 links