6.8CVSSMEDIUM
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 Vector Breakdown
Exploitability
AV:NAccess VectorNetwork
AC:MAccess ComplexityMedium
Au:NAuthenticationNone
Impact
C:PConfidentialityPartial
I:PIntegrityPartial
A:PAvailabilityPartial
Weaknesses
Affected Products
Attack Graph
Products CVE Techniques Tactics
Click technique nodes to view MITRE ATT&CK details. Scroll to zoom, drag to pan.
Exploitability
Official Patch Available
MITRE ATT&CK
2 techniques Initial Access
Privilege Escalation
References
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26763
gcc.gnu.org
http://www.kb.cert.org/vuls/id/162289
kb.cert.org
https://exchange.xforce.ibmcloud.com/vulnerabilities/41686
exchange.xforce.ibmcloud.com
and 4 more references View all →
Timeline
Published
Apr 6, 2008
Last Updated
Apr 23, 2026
Unlock Complete Vulnerability Intelligence
Get the full picture for CVE-2008-1685 and every CVE in our database. Create a free account — no credit card required.
Create Free AccountPlain-language analysis
Impact assessment and exploitation scenario in plain English
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows