# CVE-2008-1685

- Priority: **Routine**
- Reason: Not severe (CVSS 6.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2008-04-06 · Modified: 2024-08-07
- Record: https://cvemate.com/vulnerability/CVE-2008-1685 · JSON: https://cvemate.com/vulnerability/CVE-2008-1685/json

## Description

```text
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)
```

## Signals

- CVSS: 6.8 medium (v2.0, NVD) AV:N/AC:M/Au:N/C:P/I:P/A:P
- EPSS: 1.253%, percentile 70.447%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- gnu gcc: 4.2.0 \| 4.2.1 \| 4.2.2 \| 4.2.3 \| 4.2.4 \| 4.3.0

## References

- <https://exchange.xforce.ibmcloud.com/vulnerabilities/41686>
- <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26763>
- <http://www.kb.cert.org/vuls/id/162289>

---

Data as of 2026-12-05T03:10:44.605Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
