Back

MEDIUM

Out‑of‑Bounds Read in 8cc

Published Jun 18, 2026

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.

Affected products

Remediation

No remediation recorded yet.

References (3)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner CERT-PL
Published Jun 18, 2026
Updated Jun 18, 2026
Reserved Jun 5, 2026
CISA Vulnrichment
Updated Jun 18, 2026
NVD
Status Deferred
Modified Jun 22, 2026
Red Hat
Severity n/a
Public date n/a
ENISA EUVD
Assigner CERT-PL
Published Jun 18, 2026
Updated Jun 18, 2026
Exploited since n/a
EUVD-2026-37865