CVE-2026-35201
Discount has an Out-of-bounds Read in rdiscount
Description
Discount is an implementation of John Gruber's Markdown markup language in C. From 1.3.1.1 to before 2.2.7.4, 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 vulnerability is fixed in 2.2.7.4.
INFO
Published Date :
April 6, 2026, 8:16 p.m.
Last Modified :
July 24, 2026, 9:10 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | MEDIUM | [email protected] |
Solution
- Update Discount to version 2.2.7.4 or newer.
- Apply security patches provided by the vendor.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-35201.
| URL | Resource |
|---|---|
| https://github.com/davidfstr/rdiscount/security/advisories/GHSA-6r34-94wq-jhrc | Exploit Vendor Advisory |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-35201 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-35201
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-35201 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-35201 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Translated by [email protected]
Jul. 24, 2026
Action Type Old Value New Value Added Translation Title: rdiscount de davidfstr, Description: Discount es una implementación del lenguaje de marcado Markdown de John Gruber en C. Desde la 1.3.1.1 hasta antes de la 2.2.7.4, un error de truncamiento de longitud con signo causa una lectura fuera de límites en la ruta de análisis de Markdown predeterminada. Las entradas mayores que INT_MAX se truncan a un entero con signo antes de entrar al analizador nativo, permitiendo que el analizador lea más allá del final del búfer suministrado y bloquee el proceso. Esta vulnerabilidad se corrige en la 2.2.7.4. -
CVE Modified by [email protected]
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'davidfstr', 'product': 'rdiscount', 'versions': [{'status': 'affected', 'version': '>= 1.3.1.1, < 2.2.7.4'}]}] -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jun. 17, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2026-35201', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-04-07T16:21:05.300982Z'} -
Initial Analysis by [email protected]
Apr. 16, 2026
Action Type Old Value New Value Added CPE Configuration OR *cpe:2.3:a:dafoster:rdiscount:*:*:*:*:*:ruby:*:* versions from (including) 1.3.1.1 up to (excluding) 2.2.7.4 Added Reference Type GitHub, Inc.: https://github.com/davidfstr/rdiscount/security/advisories/GHSA-6r34-94wq-jhrc Types: Exploit, Vendor Advisory -
New CVE Received by [email protected]
Apr. 06, 2026
Action Type Old Value New Value Added Description Discount is an implementation of John Gruber's Markdown markup language in C. From 1.3.1.1 to before 2.2.7.4, 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 vulnerability is fixed in 2.2.7.4. Added CVSS V3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H Added CWE CWE-125 Added Reference https://github.com/davidfstr/rdiscount/security/advisories/GHSA-6r34-94wq-jhrc