CVE-2026-50643: CWE-125 Out-of-bounds Read in rui314 8cc
8cc is vulnerable to an Out‑of‑Bounds Read due to improper handling of #line directives and GNU linemarkers. The compiler accepts attacker-controlled filename and line number metadata and later uses it without validation when accessing source line arrays. By supplying invalid or oversized line numbers, an attacker can trigger out-of-bounds memory access and a crash. Maintainer of this project was notified early about this vulnerability, but didn't respond with the details of vulnerability or vulnerable version range. Version corresponding to the commit b480958 was tested and confirmed as vulnerable, other versions were not tested but might also be vulnerable.
AI Analysis
Technical Summary
CVE-2026-50643 describes an out-of-bounds read vulnerability (CWE-125) in the 8cc compiler from the rui314 project. The issue stems from the compiler's acceptance and use of attacker-controlled #line directive metadata, including filenames and line numbers, without proper validation. This can lead to out-of-bounds access of source line arrays when invalid or excessively large line numbers are processed, potentially causing a crash. The vulnerability was confirmed in the version corresponding to commit b480958. The maintainer has not provided details on the vulnerable version range or any fixes. No known exploits are reported in the wild.
Potential Impact
An attacker who can supply crafted source code with malicious #line directives can cause the 8cc compiler to perform out-of-bounds reads on memory, which may lead to a crash of the compiler process. This could disrupt compilation workflows or be leveraged in denial-of-service scenarios. There is no indication of code execution or data leakage beyond the out-of-bounds read and crash.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since the maintainer has not responded with details or fixes, users should avoid processing untrusted source files containing #line directives or GNU linemarkers until an official fix or guidance is available. Monitoring the project repository and security advisories for updates is recommended.
CVE-2026-50643: CWE-125 Out-of-bounds Read in rui314 8cc
Description
8cc is vulnerable to an Out‑of‑Bounds Read due to improper handling of #line directives and GNU linemarkers. The compiler accepts attacker-controlled filename and line number metadata and later uses it without validation when accessing source line arrays. By supplying invalid or oversized line numbers, an attacker can trigger out-of-bounds memory access and a crash. Maintainer of this project was notified early about this vulnerability, but didn't respond with the details of vulnerability or vulnerable version range. Version corresponding to the commit b480958 was tested and confirmed as vulnerable, other versions were not tested but might also be vulnerable.
CVSS v4.0
Score 5.1medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-50643 describes an out-of-bounds read vulnerability (CWE-125) in the 8cc compiler from the rui314 project. The issue stems from the compiler's acceptance and use of attacker-controlled #line directive metadata, including filenames and line numbers, without proper validation. This can lead to out-of-bounds access of source line arrays when invalid or excessively large line numbers are processed, potentially causing a crash. The vulnerability was confirmed in the version corresponding to commit b480958. The maintainer has not provided details on the vulnerable version range or any fixes. No known exploits are reported in the wild.
Potential Impact
An attacker who can supply crafted source code with malicious #line directives can cause the 8cc compiler to perform out-of-bounds reads on memory, which may lead to a crash of the compiler process. This could disrupt compilation workflows or be leveraged in denial-of-service scenarios. There is no indication of code execution or data leakage beyond the out-of-bounds read and crash.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since the maintainer has not responded with details or fixes, users should avoid processing untrusted source files containing #line directives or GNU linemarkers until an official fix or guidance is available. Monitoring the project repository and security advisories for updates is recommended.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CERT-PL
- Date Reserved
- 2026-06-05T13:27:10.270Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a33b845f198dc38c17e8a39
Added to database: 06/18/2026, 09:20:05 UTC
Last enriched: 06/18/2026, 09:35:13 UTC
Last updated: 08/02/2026, 07:17:57 UTC
Views: 85
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.