{"api_version":"1","generated_at":"2026-07-25T00:46:38+00:00","cve":"CVE-2022-24724","urls":{"html":"https://cve.report/CVE-2022-24724","api":"https://cve.report/api/cve/CVE-2022-24724.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-24724","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-24724"},"summary":{"title":"CVE-2022-24724","description":"cmark-gfm is GitHub's extended version of the C reference implementation of CommonMark. Prior to versions 0.29.0.gfm.3 and 0.28.3.gfm.21, an integer overflow in cmark-gfm's table row parsing `table.c:row_from_string` may lead to heap memory corruption when parsing tables who's marker rows contain more than UINT16_MAX columns. The impact of this heap corruption ranges from Information Leak to Arbitrary Code Execution depending on how and where `cmark-gfm` is used. If `cmark-gfm` is used for rendering remote user controlled markdown, this vulnerability may lead to Remote Code Execution (RCE) in applications employing affected versions of the `cmark-gfm` library. This vulnerability has been patched in the following cmark-gfm versions 0.29.0.gfm.3 and 0.28.3.gfm.21. A workaround is available. The vulnerability exists in the table markdown extensions of cmark-gfm. Disabling the table extension will prevent this vulnerability from being triggered.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-03-03 20:15:00","updated_at":"2023-11-07 03:44:00"},"problem_types":["CWE-190"],"metrics":[],"references":[{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RSKUOJ2VAYGTJXPDE2RRPMNLVVMKCI77/","name":"FEDORA-2022-79b9a59e3b","refsource":"","tags":[],"title":"[SECURITY] Fedora 36 Update: ghc-cmark-gfm-0.2.3-1.fc36 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/F7V3HAM5H6YFJG2QFEXACZR3XVWFTXTC/","name":"FEDORA-2022-bc43bafcfd","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 35 Update: ghc-cmark-gfm-0.2.3-1.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5CYUU662VO6CCXQKVZVOHXX3RGIF2DLQ/","name":"FEDORA-2022-c42d02e5e5","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 36 Update: ghostwriter-2.1.2-1.fc36 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TJBFIJEHJZEEDG6MO4MQHZYKUXELH77O/","name":"FEDORA-2022-725edc74c0","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 35 Update: ghostwriter-2.1.2-1.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KH4UQA6VWVZU5EW3HNEAB7D7BTCNJSJ2/","name":"FEDORA-2022-1f981071eb","refsource":"","tags":[],"title":"[SECURITY] Fedora 34 Update: pandoc-citeproc-0.17.0.1-5.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/F7V3HAM5H6YFJG2QFEXACZR3XVWFTXTC/","name":"FEDORA-2022-bc43bafcfd","refsource":"","tags":[],"title":"[SECURITY] Fedora 35 Update: ghc-cmark-gfm-0.2.3-1.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TJBFIJEHJZEEDG6MO4MQHZYKUXELH77O/","name":"FEDORA-2022-725edc74c0","refsource":"","tags":[],"title":"[SECURITY] Fedora 35 Update: ghostwriter-2.1.2-1.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z55K6VNVKO2G5SNKRCQ2KDG5SKTX5PVV/","name":"FEDORA-2022-557ad15f2e","refsource":"","tags":[],"title":"[SECURITY] Fedora 34 Update: ghostwriter-2.1.2-1.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/Z55K6VNVKO2G5SNKRCQ2KDG5SKTX5PVV/","name":"FEDORA-2022-557ad15f2e","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 34 Update: ghostwriter-2.1.2-1.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RSKUOJ2VAYGTJXPDE2RRPMNLVVMKCI77/","name":"FEDORA-2022-79b9a59e3b","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 36 Update: ghc-cmark-gfm-0.2.3-1.fc36 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/github/cmark-gfm/security/advisories/GHSA-mc3g-88wq-6f4x","name":"https://github.com/github/cmark-gfm/security/advisories/GHSA-mc3g-88wq-6f4x","refsource":"CONFIRM","tags":[],"title":"","mime":"","httpstatus":"200","archivestatus":"200"},{"url":"http://packetstormsecurity.com/files/166599/cmark-gfm-Integer-overflow.html","name":"http://packetstormsecurity.com/files/166599/cmark-gfm-Integer-overflow.html","refsource":"MISC","tags":[],"title":"cmark-gfm Integer overflow ≈ Packet Storm","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KH4UQA6VWVZU5EW3HNEAB7D7BTCNJSJ2/","name":"FEDORA-2022-1f981071eb","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 34 Update: pandoc-citeproc-0.17.0.1-5.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5CYUU662VO6CCXQKVZVOHXX3RGIF2DLQ/","name":"FEDORA-2022-c42d02e5e5","refsource":"","tags":[],"title":"[SECURITY] Fedora 36 Update: ghostwriter-2.1.2-1.fc36 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-24724","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24724","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"24724","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"34","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"24724","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"35","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"24724","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"36","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"24724","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"github","cpe5":"cmark-gfm","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-24724","qid":"184700","title":"Debian Security Update for ruby-commonmarkercmark-gfmghostwriterpython-cmarkgfmr-cran-commonmark (CVE-2022-24724)"},{"cve":"CVE-2022-24724","qid":"282505","title":"Fedora Security Update for ghostwriter (FEDORA-2022-725edc74c0)"},{"cve":"CVE-2022-24724","qid":"282506","title":"Fedora Security Update for ghostwriter (FEDORA-2022-557ad15f2e)"},{"cve":"CVE-2022-24724","qid":"282507","title":"Fedora Security Update for ghc (FEDORA-2022-bc43bafcfd)"},{"cve":"CVE-2022-24724","qid":"282549","title":"Fedora Security Update for ghc (FEDORA-2022-1f981071eb)"},{"cve":"CVE-2022-24724","qid":"940595","title":"AlmaLinux Security Update for pandoc (ALSA-2022:5597)"},{"cve":"CVE-2022-24724","qid":"960285","title":"Rocky Linux Security Update for pandoc (RLSA-2022:5597)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-24724","STATE":"PUBLIC","TITLE":"Integer overflow in table parsing extension leads to heap memory corruption"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"cmark-gfm","version":{"version_data":[{"version_value":"< 0.28.3.gfm.21"},{"version_value":">= 0.29.0.gfm.0, < 0.29.0.gfm.3"}]}}]},"vendor_name":"github"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"cmark-gfm is GitHub's extended version of the C reference implementation of CommonMark. Prior to versions 0.29.0.gfm.3 and 0.28.3.gfm.21, an integer overflow in cmark-gfm's table row parsing `table.c:row_from_string` may lead to heap memory corruption when parsing tables who's marker rows contain more than UINT16_MAX columns. The impact of this heap corruption ranges from Information Leak to Arbitrary Code Execution depending on how and where `cmark-gfm` is used. If `cmark-gfm` is used for rendering remote user controlled markdown, this vulnerability may lead to Remote Code Execution (RCE) in applications employing affected versions of the `cmark-gfm` library. This vulnerability has been patched in the following cmark-gfm versions 0.29.0.gfm.3 and 0.28.3.gfm.21. A workaround is available. The vulnerability exists in the table markdown extensions of cmark-gfm. Disabling the table extension will prevent this vulnerability from being triggered."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-190: Integer Overflow or Wraparound"}]}]},"references":{"reference_data":[{"name":"https://github.com/github/cmark-gfm/security/advisories/GHSA-mc3g-88wq-6f4x","refsource":"CONFIRM","url":"https://github.com/github/cmark-gfm/security/advisories/GHSA-mc3g-88wq-6f4x"},{"refsource":"FEDORA","name":"FEDORA-2022-557ad15f2e","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/Z55K6VNVKO2G5SNKRCQ2KDG5SKTX5PVV/"},{"refsource":"FEDORA","name":"FEDORA-2022-725edc74c0","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TJBFIJEHJZEEDG6MO4MQHZYKUXELH77O/"},{"refsource":"FEDORA","name":"FEDORA-2022-bc43bafcfd","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/F7V3HAM5H6YFJG2QFEXACZR3XVWFTXTC/"},{"refsource":"FEDORA","name":"FEDORA-2022-c42d02e5e5","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5CYUU662VO6CCXQKVZVOHXX3RGIF2DLQ/"},{"refsource":"FEDORA","name":"FEDORA-2022-79b9a59e3b","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RSKUOJ2VAYGTJXPDE2RRPMNLVVMKCI77/"},{"refsource":"FEDORA","name":"FEDORA-2022-1f981071eb","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KH4UQA6VWVZU5EW3HNEAB7D7BTCNJSJ2/"},{"refsource":"MISC","name":"http://packetstormsecurity.com/files/166599/cmark-gfm-Integer-overflow.html","url":"http://packetstormsecurity.com/files/166599/cmark-gfm-Integer-overflow.html"}]},"source":{"advisory":"GHSA-mc3g-88wq-6f4x","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-03-03 20:15:00","lastModifiedDate":"2023-11-07 03:44:00","problem_types":["CWE-190"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":7.5},"severity":"HIGH","exploitabilityScore":10,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:github:cmark-gfm:*:*:*:*:*:*:*:*","versionEndExcluding":"0.28.3.gfm.21","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:github:cmark-gfm:*:*:*:*:*:*:*:*","versionStartExcluding":"0.28.3.gfm.21","versionEndExcluding":"0.29.0.gfm.3","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2022","CveId":"24724","Ordinal":"228182","Title":"CVE-2022-24724","CVE":"CVE-2022-24724","Year":"2022"},"notes":[{"CveYear":"2022","CveId":"24724","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}