{"schemaVersion":3,"id":"CVE-2023-22485","aliases":["UBUNTU-CVE-2023-22485","DEBIAN-CVE-2023-22485"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2023-01-24T00:26:57.671Z","modified":"2025-03-10T21:20:51.304Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.3,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","exploitability":10,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","exploitability":10,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00723,"percentile":0.53421,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.00723},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00723,"percentile":0.53421}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00723,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00723,"percentile":0.53421}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_GITHUB_CMARK-GFM","name":"Cmark Gfm","source":"github","url":"https://github.com/github/cmark-gfm/security/advisories/GHSA-29g3-96g3-jg6c","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-125","name":"Out-of-bounds Read","description":"The product reads data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/125.html"},{"id":"CWE-91","name":"XML Injection (aka Blind XPath Injection)","description":"The product does not properly neutralize special elements that are used in XML, allowing attackers to modify the syntax, content, or commands of the XML before it is processed by an end system.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/91.html"}],"affected":[{"vendor":"debian","product":"cmark-gfm","name":"cmark-gfm","label":"cmark-gfm","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/cmark-gfm","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 0.29.0.gfm.13-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 0.29.0.gfm.13-1","eol":null,"hubHref":null},{"vendor":"debian","product":"python-cmarkgfm","name":"python-cmarkgfm","label":"python-cmarkgfm","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/python-cmarkgfm","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 2024.11.20-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 2024.11.20-1","eol":null,"hubHref":null},{"vendor":"debian","product":"r-cran-commonmark","name":"r-cran-commonmark","label":"r-cran-commonmark","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/r-cran-commonmark","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 1.9.0-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 1.9.0-1","eol":null,"hubHref":null},{"vendor":"debian","product":"ruby-commonmarker","name":"ruby-commonmarker","label":"ruby-commonmarker","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/ruby-commonmarker","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 0.23.10-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 0.23.10-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"cmark-gfm","name":"cmark-gfm","label":"cmark-gfm","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/cmark-gfm","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"github","product":"cmark-gfm","name":"cmark-gfm","label":"cmark-gfm","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.29.0.gfm.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.29.0.gfm.7","eol":null,"hubHref":"/vendor/github/cmark-gfm"}],"affectedCount":6,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/github/cmark-gfm/security/advisories/GHSA-c944-cv5f-hpvr","label":"github.com/github/cmark-gfm/security/advisories/GHSA-c944-cv5f-hpvr","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT","Exploit","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2023-22485","label":"ubuntu.com/security/CVE-2023-22485","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-22485","label":"www.cve.org/CVERecord?id=CVE-2023-22485","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2023-22485","label":"security-tracker.debian.org/tracker/CVE-2023-22485","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2023-01-24T00:26:57.671Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-03-10T21:20:51.304Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":31,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T20:10:54.334Z","stale":false,"partial":false}}