RSEC-2023-8
JSON

Not scored

Denial of Service (DoS) vulnerabilities

Severity
Not scored
Published
Last changed

Description

cmark-gfm, GitHub's extended version of the CommonMark library in C, suffers from multiple vulnerabilities affecting versions prior to 0.29.0.gfm.12. Various issues, including polynomial time complexity in multiple components like autolink extension, handle_close_bracket, and parsing of certain text patterns (leading >, -, _), may lead to unbounded resource exhaustion and denial of service. An out-of-bounds read in the validate_protocol function was also identified but is considered less harmful. Patches are available in versions 0.29.0.gfm.7, 0.29.0.gfm.10, and 0.29.0.gfm.12. Upgrading is advised, and users unable to upgrade should validate input from trusted sources.

Affected

Product or packageVersionsReported by
commonmark (CRAN)from 0.2 before 1.9.2R Consortium Advisory Database

References

Related

Sources

SourceRecordLicence
R Consortium Advisory DatabaseRSEC-2023-8 changed 2025-05-19Apache-2.0