{"cve":"CVE-2008-1685","nvd":{"published":"2008-04-06T23:44:00.000","modified":"2026-06-16T22:52:15.830","status":"Modified","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_v4":null,"cvss_v3":null,"cwes":["CWE-119","CWE-189"],"references":["http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26763","http://www.kb.cert.org/vuls/id/162289","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"],"products":["gnu:gcc"],"source":"nvd","synced_at":"2026-10-19T19:51:11.071189229+00:00"},"epss":{"cve":"CVE-2008-1685","score":0.01253,"percentile":0.69461,"date":"2026-11-01"},"kev":null,"osv":[],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}