Vulnerability · Published Jan 4, 2024 · Assigned by VulnCheck
CVE-2024-22051CommonMarker Integer Overflow Vulnerability
Critical 9.8
In plain English
A critical-severity integer overflow in commonmarker. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.5% (higher than 73% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | ruby-commonmarker | 0.23.4-1 | DEBIAN-CVE-2024-22051 |
| Debian:13 | ruby-commonmarker | 0.23.4-1 | DEBIAN-CVE-2024-22051 |
| Debian:14 | ruby-commonmarker | 0.23.4-1 | DEBIAN-CVE-2024-22051 |
| RubyGems | commonmarker | 0.23.4 | GHSA-fmx4-26r3-wxpf |
| Ubuntu:22.04:LTS | ruby-commonmarker | no fix listed | UBUNTU-CVE-2024-22051 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| commonmarker | 0 – before 0.23.4 |
Weakness: CWE-190 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/github/cmark-gfm/security/advisories/GHSA-mc3g-88wq-6f4x vendor-advisory
- https://github.com/gjtorikian/commonmarker/security/advisories/GHSA-fmx4-26r3-wxpf vendor-advisory
- https://github.com/gjtorikian/commonmarker/commit/ab4504fd17460627a6ab255bc3c63e8e5fc6aed3 patch
- https://github.com/advisories/GHSA-fmx4-26r3-wxpf vendor-advisory
- https://vulncheck.com/advisories/vc-advisory-GHSA-fmx4-26r3-wxpf third-party-advisory