CVE-2023-22485
JSON

5.3medium

cmark-gfm out-of-bounds read in validate_protocol

Severity
5.3medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.76% (higher than 52% of CVEs)
Published
Last changed
Assigned by
GitHub_M

Description

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.

Affected

Product or packageVersionsReported by
github cmark-gfm< 0.29.0.gfm.7, before 0.29.0.gfm.7CVE List, NVD

All scores

GitHub_M5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Classification

CWE-91CWE-125

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

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.

NVD (es)

cmmark-gfm es la bifurcación de GitHub de cmark, una librería y programa de análisis y representación de CommonMark en C. En versiones anteriores a la 0.29.0.gfm.7, un documento de rebajas manipulado puede desencadenar una lectura fuera de los límites en la función `validate_protocol` . Creemos que este error es inofensivo en la práctica, porque la lectura fuera de los límites accede a los metadatos "malloc" sin causar ningún daño visible. Esta vulnerabilidad ha sido parcheada en 0.29.0.gfm.7.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-22485 changed 2025-03-10CVE Terms of Use
NVDCVE-2023-22485 changed 2026-06-17Public domain