CVE-2026-50643: CWE-125 Out-of-bounds Read in rui314 8cc
8cc, a compiler from the rui314 project, is vulnerable to an out-of-bounds read caused by improper handling of #line directives and GNU linemarkers. The vulnerability arises because the compiler accepts attacker-controlled filename and line number metadata without validation, leading to potential out-of-bounds memory access and crashes when invalid or oversized line numbers are supplied. The vulnerability was confirmed in the version corresponding to commit b480958, though other versions have not been tested. No official patch or remediation guidance has been provided by the maintainer.
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, a compiler from the rui314 project, is vulnerable to an out-of-bounds read caused by improper handling of #line directives and GNU linemarkers. The vulnerability arises because the compiler accepts attacker-controlled filename and line number metadata without validation, leading to potential out-of-bounds memory access and crashes when invalid or oversized line numbers are supplied. The vulnerability was confirmed in the version corresponding to commit b480958, though other versions have not been tested. No official patch or remediation guidance has been provided by the maintainer.
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: 6/18/2026, 9:20:05 AM
Last enriched: 6/18/2026, 9:35:13 AM
Last updated: 6/18/2026, 10:48:14 AM
Views: 3
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.