CVE Catalog

CVE-2026-50643

MediumCVSS 5.1
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.17%

6th percentile — higher than 6% of all known CVEs

Summary

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.

Risk Assessment

By supplying invalid or oversized line numbers, an attacker can trigger out-of-bounds memory access and a crash. This may result in loss of availability or data leakage.

Recommendation

It is recommended to update to the latest version of 8cc if available, and to monitor any information from the maintainers regarding this vulnerability.

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS