PT-2026-30724

CVE-2026-35201

·

Published

2026-04-02

·

Updated

2026-06-26

Description by

CVSS 3.1
5.9
Medium
MetricsAV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Discount versions 1.3.1.1 through 2.2.7.3
Description A signed length truncation bug causes an out-of-bounds read in the default Markdown parse path. Inputs larger than INT MAX are truncated to a signed int before entering the native parser, allowing the parser to read past the end of the supplied buffer and crash the process. This issue affects the RDiscount.new(input).to html and RDiscount.new(input).toc content APIs. The vulnerability occurs because RSTRING LEN(text) is passed directly into mkd string(), which accepts an int len. The parser stores the remaining input length in a signed int, and if the Ruby string length exceeds INT MAX, the value can truncate to a negative int, leading to the out-of-bounds read.
Recommendations Update to version 2.2.7.4 or later.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Weakness enumeration
Related identifiers
GHSA-6R34-94WQ-JHRC
AZL-82902
Found an issue in the description? Have something to add? Feel free to write us 👾