Infinite loop in github.com/gomarkdown/markdown
Moderate severity
GitHub Reviewed
Published
Oct 15, 2024
to the GitHub Advisory Database
•
Updated Dec 12, 2024
Package
Affected versions
< 0.0.0-20240729212818-a2a9c4f76ef5
Patched versions
0.0.0-20240729212818-a2a9c4f76ef5
Description
Published by the National Vulnerability Database
Oct 15, 2024
Published to the GitHub Advisory Database
Oct 15, 2024
Reviewed
Oct 16, 2024
Last updated
Dec 12, 2024
The package
github.com/gomarkdown/markdown
is a Go library for parsing Markdown text and rendering as HTML. Prior to pseudoversionv0.0.0-20240729232818-a2a9c4f
, which corresponds with commita2a9c4f76ef5a5c32108e36f7c47f8d310322252
, 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. Submita2a9c4f76ef5a5c32108e36f7c47f8d310322252
contains fixes to this problem.References