Advisory

GHSA-xhr3-wf7j-h255

Also known as: CVE-2024-44337, GO-2024-3205

Summary

Infinite loop in github.com/gomarkdown/markdown

Details

The package github.com/gomarkdown/markdown is a Go library for parsing Markdown text and rendering as HTML. Prior to pseudoversion v0.0.0-20240729232818-a2a9c4f, which corresponds with commit a2a9c4f76ef5a5c32108e36f7c47f8d310322252, there was a logical problem in the paragraph function of the parser/block.go file, which allowed a remote attacker to cause a denial of service (DoS) condition by providing a tailor-made input that caused an infinite loop, causing the program to hang and consume resources indefinitely. Submit a2a9c4f76ef5a5c32108e36f7c47f8d310322252 contains fixes to this problem.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-10-15 21:30 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

github.com/gomarkdown/markdown

Go · All systems

Affected

  • introduced 0, fixed 0.0.0-20240729212818-a2a9c4f76ef5 (semver)

Fixed versions

0.0.0-20240729212818-a2a9c4f76ef5

Fix

  • Fixed version 0.0.0-20240729212818-a2a9c4f76ef5
    go get github.com/gomarkdown/[email protected]

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences