CVE Tools

CVE-2008-1685

Published: Apr 6, 2008Updated: Apr 23, 2026 Sources: CVE List NVD BDUCWE-119
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

AV:NAC:MAu:NC:PI:PA:P
Exploitability
AV:NAccess Vector
Network
AC:MAccess Complexity
Medium
Au:NAuthentication
None
Impact
C:PConfidentiality
Partial
I:PIntegrity
Partial
A:PAvailability
Partial

Weaknesses

Affected Products

gnuoss-projectUSOSS Librariesaka g. nu
gnu general public licenseoss-projectUSOSS Librariesaka gnu gpl, gpl

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
View detailed technique mapping

References

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 Account
Plain-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