{"id":"UBUNTU-CVE-2023-22485","details":"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.","modified":"2026-04-22T16:35:42.624887Z","published":"2023-01-24T01:15:00Z","upstream":["CVE-2023-22485"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2023-22485"},{"type":"REPORT","url":"https://github.com/github/cmark-gfm/security/advisories/GHSA-c944-cv5f-hpvr"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2023-22485"}],"affected":[{"package":{"name":"cmark-gfm","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/cmark-gfm@0.29.0.gfm.0-4ubuntu0.1~esm1?arch=source&distro=esm-apps/focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.28.3.gfm.20-3","0.29.0.gfm.0-3","0.29.0.gfm.0-4","0.29.0.gfm.0-4ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"cmark-gfm","binary_version":"0.29.0.gfm.0-4ubuntu0.1~esm1"},{"binary_name":"libcmark-gfm-extensions0","binary_version":"0.29.0.gfm.0-4ubuntu0.1~esm1"},{"binary_name":"libcmark-gfm0","binary_version":"0.29.0.gfm.0-4ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-22485.json"}},{"package":{"name":"cmark-gfm","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/cmark-gfm@0.29.0.gfm.3-3?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.29.0.gfm.0-6","0.29.0.gfm.2-1","0.29.0.gfm.2-1+really.0.29.0.gfm.0ubuntu1","0.29.0.gfm.2-2","0.29.0.gfm.3-3"],"ecosystem_specific":{"binaries":[{"binary_version":"0.29.0.gfm.3-3","binary_name":"cmark-gfm"},{"binary_name":"libcmark-gfm-extensions0.29.0.gfm.3","binary_version":"0.29.0.gfm.3-3"},{"binary_name":"libcmark-gfm0.29.0.gfm.3","binary_version":"0.29.0.gfm.3-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-22485.json"}},{"package":{"name":"cmark-gfm","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/cmark-gfm@0.29.0.gfm.6-6build1?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.29.0.gfm.6-6","0.29.0.gfm.6-6build1"],"ecosystem_specific":{"binaries":[{"binary_name":"cmark-gfm","binary_version":"0.29.0.gfm.6-6build1"},{"binary_name":"libcmark-gfm-extensions0.29.0.gfm.6","binary_version":"0.29.0.gfm.6-6build1"},{"binary_name":"libcmark-gfm0.29.0.gfm.6","binary_version":"0.29.0.gfm.6-6build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-22485.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"},{"type":"Ubuntu","score":"medium"}]}