{"id":"UBUNTU-CVE-2023-22486","details":"cmark-gfm is GitHub's fork of cmark, a CommonMark parsing and rendering library and program in C. Versions prior to 0.29.0.gfm.7 contain a polynomial time complexity issue in handle_close_bracket that may lead to unbounded resource exhaustion and subsequent denial of service. This vulnerability has been patched in 0.29.0.gfm.7.","modified":"2026-05-20T16:07:27.278652434Z","published":"2023-01-26T21:18:00Z","related":["USN-7319-1"],"upstream":["CVE-2023-22486"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2023-22486"},{"type":"REPORT","url":"https://github.com/github/cmark-gfm/security/advisories/GHSA-r572-jvj2-3m8p"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2023-22486"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7319-1"}],"affected":[{"package":{"name":"cmark","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/cmark?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.26.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"cmark","binary_version":"0.26.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-22486.json"}},{"package":{"name":"cmark","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/cmark?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.28.3-1","0.29.0-1ubuntu2","0.29.0-2"],"ecosystem_specific":{"binaries":[{"binary_name":"cmark","binary_version":"0.29.0-2"},{"binary_name":"libcmark0.29.0","binary_version":"0.29.0-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-22486.json"}},{"package":{"name":"cmark-gfm","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/cmark-gfm?arch=source&distro=esm-apps%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.29.0.gfm.0-4ubuntu0.1~esm1"}]}],"versions":["0.28.3.gfm.20-3","0.29.0.gfm.0-3","0.29.0.gfm.0-4"],"ecosystem_specific":{"binaries":[{"binary_version":"0.29.0.gfm.0-4ubuntu0.1~esm1","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"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-22486.json"}},{"package":{"name":"cmark","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/cmark?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.29.0-4","0.30.2-3","0.30.2-4","0.30.2-5"],"ecosystem_specific":{"binaries":[{"binary_name":"cmark","binary_version":"0.30.2-5"},{"binary_name":"libcmark0.30.2","binary_version":"0.30.2-5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-22486.json"}},{"package":{"name":"cmark-gfm","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/cmark-gfm?arch=source&distro=esm-apps%2Fjammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.29.0.gfm.3-3ubuntu0.1~esm1"}]}],"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_name":"cmark-gfm","binary_version":"0.29.0.gfm.3-3ubuntu0.1~esm1"},{"binary_version":"0.29.0.gfm.3-3ubuntu0.1~esm1","binary_name":"libcmark-gfm-extensions0.29.0.gfm.3"},{"binary_version":"0.29.0.gfm.3-3ubuntu0.1~esm1","binary_name":"libcmark-gfm0.29.0.gfm.3"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-22486.json"}},{"package":{"name":"cmark","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/cmark?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.30.2-6","0.30.2-6build1"],"ecosystem_specific":{"binaries":[{"binary_name":"cmark","binary_version":"0.30.2-6build1"},{"binary_name":"libcmark0.30.2","binary_version":"0.30.2-6build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-22486.json"}},{"package":{"name":"cmark-gfm","ecosystem":"Ubuntu:Pro:24.04:LTS","purl":"pkg:deb/ubuntu/cmark-gfm?arch=source&distro=esm-apps%2Fnoble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.29.0.gfm.6-6ubuntu0.24.04.1~esm1"}]}],"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-6ubuntu0.24.04.1~esm1"},{"binary_name":"libcmark-gfm-extensions0.29.0.gfm.6","binary_version":"0.29.0.gfm.6-6ubuntu0.24.04.1~esm1"},{"binary_name":"libcmark-gfm0.29.0.gfm.6","binary_version":"0.29.0.gfm.6-6ubuntu0.24.04.1~esm1"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-22486.json"}},{"package":{"name":"cmark","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/cmark?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.30.2-6build1"],"ecosystem_specific":{"binaries":[{"binary_name":"cmark","binary_version":"0.30.2-6build1"},{"binary_name":"libcmark0.30.2","binary_version":"0.30.2-6build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-22486.json"}},{"package":{"name":"cmark","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/cmark?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.30.2-6build1","0.30.2-6build2"],"ecosystem_specific":{"binaries":[{"binary_name":"cmark","binary_version":"0.30.2-6build2"},{"binary_version":"0.30.2-6build2","binary_name":"libcmark0.30.2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-22486.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}