{"id":"CVE-2008-1685","aliases":["BELL-CVE-2008-1685","EUVD-2008-1686","GHSA-6pf5-463c-qv74"],"status":"disputed","title":"** DISPUTED **  gcc 4.2.0 through 4.3.0 in GNU Compiler Collection, when casts are not used,...","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)","severity":{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.01253,"percentile":0.69645,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-119","CWE-189"],"published":"2008-04-06T23:00:00Z","modified":"2026-06-16T22:52:15Z","products":[{"vendor":"gnu","product":"gcc"}],"references":[{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/41686","tags":["vdb-entry","x_refsource_XF","x_transferred"]},{"url":"http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26763","tags":["x_refsource_MISC","x_transferred"]},{"url":"http://www.kb.cert.org/vuls/id/162289","tags":["third-party-advisory","x_refsource_CERT-VN","x_transferred","US Government Resource"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2008-1685"},{"url":"https://github.com/advisories/GHSA-6pf5-463c-qv74"},{"url":"https://docs.bell-sw.com/security/cves/CVE-2008-1685","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2008-1685","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)","status":"disputed","published":"2008-04-06T23:00:00Z","modified":"2024-08-07T08:32:01.285Z","updated_at":"2026-11-02T14:34:48.103804Z"}],"euvd":[{"id":"EUVD-2008-1686","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)","status":"published","published":"2008-04-06T23:00:00Z","modified":"2024-08-07T08:32:01Z","updated_at":"2026-11-03T01:39:00.729717Z"}],"ghsa":[{"id":"GHSA-6pf5-463c-qv74","title":"** DISPUTED **  gcc 4.2.0 through 4.3.0 in GNU Compiler Collection, when casts are not used,...","description":"** DISPUTED **  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).","status":"published","published":"2022-05-01T23:42:27Z","modified":"2023-01-31T05:05:50Z","cwes":["CWE-119"],"updated_at":"2026-11-02T14:48:55.758723Z"}],"nvd":[{"id":"CVE-2008-1685","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)","status":"disputed","published":"2008-04-06T23:44:00Z","modified":"2026-06-16T22:52:15.83Z","cvss":[{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-119","CWE-189"],"updated_at":"2026-11-02T14:01:25.857543Z"}],"osv":[{"id":"BELL-CVE-2008-1685","title":"CVE-2008-1685 does not affect BellSoft software","status":"withdrawn","published":"2008-04-06T23:44:00Z","modified":"2026-01-28T07:21:59.537517Z","cvss":[{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium"}],"updated_at":"2026-11-02T15:28:12.886815Z"}]}}
