CVE Explorer
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 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 vu
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"defaultStatus":"unknown","product":"8cc","repo":"https://github.com/rui314/8cc","vendor":"rui314","versions":[{"status":"affected","version":"b480958","versionType":"custom"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:4a2a8356694190fa4f59856b49cecf36a9b705d5caffce2fd335130d0ad2ad66 · sha256:712d4cfd32bbeb99… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"LOCAL","baseScore":5.1,"baseSeverity":"MEDIUM","privilegesRequired":"NONE","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"LOW","vulnConfidentialityImpact":"LOW","vulnIntegrityImpact":"NONE"…
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:4a2a8356694190fa4f59856b49cecf36a9b705d5caffce2fd335130d0ad2ad66 · sha256:712d4cfd32bbeb99… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
1 source assertion{"cweId":"CWE-125","description":"CWE-125 Out-of-bounds Read","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:4a2a8356694190fa4f59856b49cecf36a9b705d5caffce2fd335130d0ad2ad66 · sha256:712d4cfd32bbeb99… · /containers/cna/problemTypes/0/descriptions/0
Source references
2 source assertions{"tags":["third-party-advisory"],"url":"https://cert.pl/en/posts/2026/06/CVE-2026-50641"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:4a2a8356694190fa4f59856b49cecf36a9b705d5caffce2fd335130d0ad2ad66 · sha256:712d4cfd32bbeb99… · /containers/cna/references/0
{"tags":["product"],"url":"https://github.com/rui314/8cc"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:4a2a8356694190fa4f59856b49cecf36a9b705d5caffce2fd335130d0ad2ad66 · sha256:712d4cfd32bbeb99… · /containers/cna/references/1
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.