{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2008-1685","published":"2008-04-06T23:44:00Z","last_modified":"2026-06-16T22:52:15.830000Z","status":"Modified","cvss":{"version":"2.0","score":6.8,"severity":"MEDIUM","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-119","CWE-189"],"cpes":[{"criteria":"cpe:2.3:a:gnu:gcc:4.2.0:*:*:*:*:*:*:*","part":"a","vendor":"gnu","product":"gcc","version":"4.2.0"},{"criteria":"cpe:2.3:a:gnu:gcc:4.2.1:*:*:*:*:*:*:*","part":"a","vendor":"gnu","product":"gcc","version":"4.2.1"},{"criteria":"cpe:2.3:a:gnu:gcc:4.2.2:*:*:*:*:*:*:*","part":"a","vendor":"gnu","product":"gcc","version":"4.2.2"},{"criteria":"cpe:2.3:a:gnu:gcc:4.2.3:*:*:*:*:*:*:*","part":"a","vendor":"gnu","product":"gcc","version":"4.2.3"},{"criteria":"cpe:2.3:a:gnu:gcc:4.2.4:*:*:*:*:*:*:*","part":"a","vendor":"gnu","product":"gcc","version":"4.2.4"},{"criteria":"cpe:2.3:a:gnu:gcc:4.3.0:*:*:*:*:*:*:*","part":"a","vendor":"gnu","product":"gcc","version":"4.3.0"}],"cpes_truncated":false,"vendors":["gnu"],"products":["gnu/gcc"],"epss":{"score":0.01253,"percentile":0.69481,"date":"2026-11-27","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"medium","priority_score":56,"links":{"html_es":"/es/cve/CVE-2008-1685/","html_en":"/en/cve/CVE-2008-1685/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2008-1685","cve_org":"https://www.cve.org/CVERecord?id=CVE-2008-1685"},"untrusted":{"vendor_name":"Gnu","product_name":"Gcc","desc_en":"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)","affected":[],"references":[{"url":"http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26763","tags":[]},{"url":"http://www.kb.cert.org/vuls/id/162289","tags":["US Government Resource"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/41686","tags":[]}]}}