XPath Injection in Github Cmark-Gfm

CVE-2023-22485

cmark-gfm is GitHub's fork of cmark, a CommonMark parsing and rendering library and program in C. In versions prior 0.29.0.gfm.7, a crafted markdown document can trigger an out-of-bounds read in the `validate_protocol` function. We believe this bug is harmless in practice, because the out-of-bounds read accesses `malloc` metadata without causing any visible damage.This vulnerability has been patched in 0.29.0.gfm.7.

Vulnerability class: Buffer Overflow

EPSS: 0.007 (50.3th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2023-22485?
CVE-2023-22485 is a medium-severity vulnerability in Github Cmark-Gfm, classified under Out-of-bounds Read. CVSS score: 5.3/10. Published 2023-01-24.
How severe is CVE-2023-22485?
Medium severity. CVSS v3 base score is 5.3 out of 10.