Out-of-Bounds Read Vulnerability in 8cc Compiler by Rui314
CVE-2026-50643
5.1MEDIUM
What is CVE-2026-50643?
The 8cc compiler is susceptible to an Out-of-Bounds Read vulnerability due to inadequate handling of #line directives and GNU linemarkers. This security flaw occurs when the compiler processes attacker-controlled filename and line number metadata without proper validation. By leveraging invalid or excessively large line numbers, an attacker can exploit this vulnerability, leading to out-of-bounds memory access and a potential crash of the system. Although the maintainer was notified of the issue, there has been no response regarding the specifics of the vulnerability or confirmation of potentially vulnerable versions beyond the tested version corresponding to commit b480958.
Affected Version(s)
8cc b480958
References
CVSS V4
Score:
5.1
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
None
Availability:
Low
Attack Vector:
Local
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None
Timeline
Vulnerability published
Vulnerability Reserved
Credit
Michal Majchrowicz (AFINE)
Marcin Wyczechowski (AFINE)
