Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-50643: CWE-125 Out-of-bounds Read in rui314 8cc

0
Medium
VulnerabilityCVE-2026-50643cvecve-2026-50643cwe-125
Published: Thu Jun 18 2026 (06/18/2026, 08:58:01 UTC)
Source: CVE Database V5
Vendor/Project: rui314
Product: 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

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
Low
Vuln. Integrity
None
Vuln. Availability
Low
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N

Affected software

GitHub Actionsmore threats →cve
8cc
pkg:github/8cc

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/18/2026, 09:35:13 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses