{"dataType": "CVE_RECORD", "containers": {"cna": {"metrics": [{"format": "CVSS", "cvssV2_0": {"version": "2.0", "baseScore": 6.8, "accessVector": "NETWORK", "vectorString": "AV:N/AC:M/Au:N/C:P/I:P/A:P", "authentication": "NONE", "integrityImpact": "PARTIAL", "accessComplexity": "MEDIUM", "availabilityImpact": "PARTIAL", "confidentialityImpact": "PARTIAL"}}], "affected": [{"cpes": ["cpe:2.3:a:gnu:gcc:4.2.0:*:*:*:*:*:*:*", "cpe:2.3:a:gnu:gcc:4.2.1:*:*:*:*:*:*:*", "cpe:2.3:a:gnu:gcc:4.2.2:*:*:*:*:*:*:*", "cpe:2.3:a:gnu:gcc:4.2.3:*:*:*:*:*:*:*", "cpe:2.3:a:gnu:gcc:4.2.4:*:*:*:*:*:*:*", "cpe:2.3:a:gnu:gcc:4.3.0:*:*:*:*:*:*:*"], "vendor": "gnu", "product": "gcc", "versions": [{"status": "affected", "version": "4.2.0"}, {"status": "affected", "version": "4.2.1"}, {"status": "affected", "version": "4.2.2"}, {"status": "affected", "version": "4.2.3"}, {"status": "affected", "version": "4.2.4"}, {"status": "affected", "version": "4.3.0"}], "defaultStatus": "unaffected"}], "references": [{"url": "http://www.kb.cert.org/vuls/id/162289", "tags": ["x_us-government-resource"]}, {"url": "http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26763"}, {"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/41686"}], "descriptions": [{"lang": "en", "value": "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)"}, {"lang": "es", "value": "** DISPUTED ** gcc de 4.2.0 a 4.3.0 en GNU Compiler Collection, cuando casts no están utilizados, considera que la suma de un puntero y un entero es mayor o igual que el puntero, lo que podría llevar a la eliminación del código de comprobación de longitud que estaba previsto como un mecanismo de protección contra ataques de desbordamientos de enteros y desbordamiento de búfer, y no proporcionar un mensaje diagnóstico sobre esta eliminación. NOTA: el proveedor ha determinado que este comportamiento del compilador es correcto según la sección 6.5.6 de la norma C99 (también conocido como ISO/IEC 9899:1999)."}], "problemTypes": [{"descriptions": [{"lang": "en", "cweId": "CWE-119", "description": "CWE-119"}, {"lang": "en", "cweId": "CWE-189", "description": "CWE-189"}]}], "providerMetadata": {"orgId": "00000000-0000-4000-A000-000000000003", "shortName": "nvd", "dateUpdated": "2008-04-06T23:44:00Z", "x_subShortName": "nvd"}}}, "cveMetadata": {"cveId": "CVE-2008-1685", "state": "PUBLISHED", "dateUpdated": "2025-04-09T00:30:58Z", "assignerOrgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca", "datePublished": "2008-04-06T23:44:00Z", "assignerShortName": "mitre"}, "dataVersion": "5.0"}