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.
The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
Link | Tags |
---|---|
https://github.com/github/cmark-gfm/security/advisories/GHSA-mc3g-88wq-6f4x | not applicable related |
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 | third party advisory |
https://vulncheck.com/advisories/vc-advisory-GHSA-fmx4-26r3-wxpf | third party advisory |