CVE-2008-1685: gnu gcc
Vulnerability summary
CVE-2008-1685 is a medium (CVSS 6.8) vulnerability in gnu gcc. EPSS estimates a 1.25% chance of exploitation in the next 30 days, higher than 68.9% of scored vulnerabilities.
Timeline
- 06-04-2008PublishedVulnerability first disclosed.
- 07-08-2024Last modifiedVulnerability information updated.
Description
gcc 4.2.0 through 4.3.0 in GNU Compiler Collection, when casts are not used, considers the sum of a pointer and an int to be greater than or equal to the pointer, which might lead to removal of length testing code that was intended as a protection mechanism against integer overflow and buffer overflow attacks, and provide no diagnostic message about this removal. NOTE: the vendor has determined that this compiler behavior is correct according to section 6.5.6 of the C99 standard (aka ISO/IEC 9899:1999)
CVSS metrics
1 score · 1 source · 1 versionEPSS trend
Probability
1.25%
Chance of exploitation in the next 30 days
Percentile
69%
Versus all other CVEs
30-day change
0.00 pp
From 1.25% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-119Improper Restriction of Operations within the Bounds of a Memory BufferThe product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.
- CWE-189Numeric ErrorsWeaknesses in this category are related to improper calculation or conversion of numbers.
Affected systems
Gnu1 product
- gcc4.2.0 | 4.2.1 | 4.2.2 | 4.2.3 | 4.2.4 | 4.3.0
1 vendor · 1 product
References
3 links- gcc.gnu.org/bugzilla/show_bug.cgi?id=26763X Refsource MISC