Live threats

All CVEs / Gomarkdown

CVE-2023-42821Gomarkdown Markdown

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
—
Auth required
No
Published
Sep 22, 2023
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-125
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Markdown.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/gomarkdown/markdown < 0.0.0-20230922105210-14b16010c2ee 0.0.0-20230922105210-14b16010c2ee go get github.com/gomarkdown/markdown@v0.0.0-20230922105210-14b16010c2ee
Go github.com/gomarkdown/markdown < 0.0.0-20230922105210-14b16010c2ee 0.0.0-20230922105210-14b16010c2ee go get github.com/gomarkdown/markdown@v0.0.0-20230922105210-14b16010c2ee

Per OSV / GitHub Advisories (GHSA-m9xq-6h2j-65r2, GO-2023-2074). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
gomarkdownmarkdownall

Official sources

References

Links published by the sources. Open them with care.