CVE-2008-1685
mediumpriority · track · 27EPSS 0.013 · 69 %ileEURUUSEPSS · scored 2026-10-27
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
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 5.8–8.6
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (8)
Products and version ranges known to be affected.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (6)
External citations — patches, advisories, analysis.
- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26763enisa_euvd
- http://www.kb.cert.org/vuls/id/162289enisa_euvd
- https://exchange.xforce.ibmcloud.com/vulnerabilities/41686enisa_euvd
- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26763nvd
- http://www.kb.cert.org/vuls/id/162289US Government Resourcenvd
- https://exchange.xforce.ibmcloud.com/vulnerabilities/41686nvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan