NONE · 0

CVE-2026-50643

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 i...

Vulnerability 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.

Related Weaknesses (CWE)

References

FAQ

What is CVE-2026-50643?

CVE-2026-50643 is a documented vulnerability. 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 i...

How severe is CVE-2026-50643?

CVSS scoring is not yet available for CVE-2026-50643. Check NVD for updates.

Is there a patch for CVE-2026-50643?

Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.