Buffer overflow in Tinycc
CVE-2019-12495
An issue was discovered in Tiny C Compiler (aka TinyCC or TCC) 0.9.27. Compiling a crafted source file leads to a one-byte out-of-bounds write in the gsym_addr function in x86_64-gen.c. This occurs because tccasm.c mishandles section switches.
Vulnerability class: Buffer Overflow
EPSS: 0.012 (65.5th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H.
Affected products
- Tinycc — versions 0.9.27
- N/a — versions n/a
Weakness classification (CWE)
References
- cve@mitre.org (Exploit, Third Party Advisory, x_refsource_MISC)
- cve@mitre.org (Patch, Third Party Advisory, x_refsource_MISC)
- cve@mitre.org (vdb-entry, x_refsource_BID)
Frequently asked questions
- What is CVE-2019-12495?
- CVE-2019-12495 is a medium-severity vulnerability in Tinycc, classified under Out-of-bounds Write. CVSS score: 5.5/10. Published 2019-05-31.
- How severe is CVE-2019-12495?
- Medium severity. CVSS v3 base score is 5.5 out of 10.