CVE-2024-22051
CRITICAL 9.8CVSS 3.1Integer overflow in cmark-gfm table parsing extension leads to heap memory corruption
CommonMarker versions prior to 0.23.4 are at risk of an integer overflow vulnerability. This vulnerability can result in possibly unauthenticated remote attackers to cause heap memory corruption, potentially leading to an information leak or remote code execution, via parsing tables with marker rows that contain more than UINT16_MAX columns.
- Published
- 4 Jan 2024
- Last modified
- 14 Jul 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Modified
- Weakness
- CWE-190
- Also known as
- GHSA-fmx4-26r3-wxpf
- Sources
- NVDJSONOSV GHSA-fmx4-26r3-wxpfJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | github | cmark-gfmcpe:2.3:a:github:cmark-gfm:*:*:*:*:*:*:*:* |
< 0.28.3.gfm.21 | 0.28.3.gfm.21 |
| NVD | github | cmark-gfmcpe:2.3:a:github:cmark-gfm:*:*:*:*:*:*:*:* |
>= 0.29.0.gfm.0, < 0.29.0.gfm.3 | 0.29.0.gfm.3 |
| NVD | gjtorikian | commonmarkercpe:2.3:a:gjtorikian:commonmarker:*:*:*:*:*:ruby:*:* |
< 0.23.4 | 0.23.4 |
| OSV | RubyGems | commonmarker | < 0.23.4 | 0.23.4 |
References
- https://github.com/advisories/GHSA-fmx4-26r3-wxpf · Third Party Advisory
- https://github.com/github/cmark-gfm/security/advisories/GHSA-mc3g-88wq-6f4x · Not Applicable, WEB
- https://github.com/gjtorikian/commonmarker/commit/ab4504fd17460627a6ab255bc3c63e8e5fc6aed3 · Patch, WEB
- https://github.com/gjtorikian/commonmarker/security/advisories/GHSA-fmx4-26r3-wxpf · Vendor Advisory, WEB
- https://vulncheck.com/advisories/vc-advisory-GHSA-fmx4-26r3-wxpf · Third Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2024-22051 · ADVISORY
- https://github.com/gjtorikian/commonmarker · PACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/commonmarker/CVE-2024-22051.yml · WEB
History
- 25 Nov 2026 20:37 UTC · NVD: first stored (published 4 Jan 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 3 Mar 2022)