GitHub Advisoryadvisory · Go

GHSA-xhr3-wf7j-h255 Infinite loop in github.com/gomarkdown/markdown

MEDIUM Published 2024-10-15 Modified 2024-12-12 Official page ↗
Aliases
CVE-2024-44337
Ecosystem
Go
Packages
github.com/gomarkdown/markdown
Severity
Moderate
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
Weaknesses
CWE-835
Reviewed
2024-10-16

Affected packages

• Go github.com/gomarkdown/markdown: < 0.0.0-20240729212818-a2a9c4f76ef5 → fixed in 0.0.0-20240729212818-a2a9c4f76ef5

Description

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.

Related

Alias · CVE (1)

  • CVE-2024-44337 The package `github.com/gomarkdown/markdown` is a Go library for parsing Markdown text and rendering as HTML. vulnerability

Weakness · CWE (1)

  • CWE-835 Loop with Unreachable Exit Condition weakness

References