Skip to content
CVE Tracker
Back

CVE-2008-1685

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…

Medium6.8EPSS 1.3%
Published
Updated
Reserved
Assigned by
mitre

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)

Scores

CVSS scores of CVE-2008-1685, by who scored it
Scored byCVSSScoreVector
NVDNVD · Modified2.0Medium6.8AV:N/AC:M/Au:N/C:P/I:P/A:P
EPSS (exploitation in 30 days)
1.3% · top 31% of all CVEs (3 Nov 2026)
Loading the EPSS history…

The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.8.

Weakness

Affected products

  • n/a

    • affected n/a

References (3)

Sources

The same CVE in the primary databases and aggregators, to check against.

Badge for a README or a ticket

CVE-2008-1685 badge
[![CVE-2008-1685](https://trackcve.app/badge/CVE-2008-1685.svg)](https://trackcve.app/cve/CVE-2008-1685)

Record last updated .