Falhas do tipo CWE-681

90 resultados

Conversão incorreta entre tipos numéricos

Ocorre quando o código converte um número de um tipo para outro sem validar se o valor cabe no novo tipo ou se a conversão preserva a semântica esperada. Um inteiro grande pode virar negativo, um float pode perder precisão, ou um valor assinado vira sem-sinal — causando lógica quebrada, buffer overflow ou bypass de validações.

Exemplo

Um validador verifica se um tamanho de buffer é menor que 1000 (int assinado). Se receber -2147483648 (int mínimo) e converter para size_t sem-sinal, vira um número gigante e o malloc aloca muito pouco, causando overflow.

Como mitigar

Sempre validar o intervalo antes de converter; usar tipos consistentes em comparações críticas; ferramentas estáticas (clang-analyzer, SonarQube) detectam conversões suspeitas; preferir bibliotecas seguras que encapsulam conversões numéricas.

CVE-2026-24856HIGHiccDEV has UB runtime error in <icTagTypeSignature>EPSS 0.3%CVE-2025-10543MEDIUMIn Eclipse Paho Go MQTT v3.1 library (paho.mqtt.golang) versions <=1.5.0 UTF-8 encoded strings, passed into the library, may be incorrectly EPSS 0.2%CVE-2026-53466MEDIUMImageMagick: Heap Buffer Over-Read in XCF decoder due to integer conversion overflowEPSS 0.2%CVE-2026-12670MEDIUMIBM MQ Denial of ServiceEPSS 0.2%CVE-2021-41202MEDIUMOverflow/crash in `tf.range`EPSS 0.2%CVE-2026-24192HIGHNVIDIA Display Driver for Linux contains a vulnerability where an attacker could cause an incorrect conversion between numeric types, leadinEPSS 0.2%CVE-2026-114118MEDIUMVyper 0.3.4 through 0.5.0b1 create_from_blueprint Offset Validation Bypass via Unsigned WraparoundEPSS 0.2%CVE-2026-21673HIGHiccDEV has Integer Overflow/Underflow in CIccXmlArrayType::ParseTextCountNum()EPSS 0.2%CVE-2021-29539LOWSegfault in tf.raw_ops.ImmutableConstEPSS 0.2%CVE-2026-27691MEDIUMiccDEV has SIO in parse3DTable() at iccFromCube.cpp Line 218EPSS 0.2%CVE-2026-88387MEDIUMLibRaw 0.22.0 contains an incorrect numeric conversion vulnerability in LibRaw::parse_tiff_ifd() when processing TIFF tag 0x00fe (NewSubfileEPSS 0.2%CVE-2021-37669MEDIUMCrash in NMS ops caused by integer conversion to unsigned in TensorFlowEPSS 0.2%CVE-2026-82457HIGHsu-exec through 0.3 Privilege Escalation via Numeric User IDEPSS 0.2%CVE-2026-106432LOWHeap buffer overflow via 32-bit string-length truncation in MongoDB PHP DriverEPSS 0.2%CVE-2026-34610MEDIUMleancrypto: Integer truncation in X.509 name parser enables certificate identity impersonationEPSS 0.2%CVE-2026-34548MEDIUMiccDEV: UB at IccUtilXml.cppEPSS 0.2%CVE-2026-34550MEDIUMiccDEV: UB at IccIO.cppEPSS 0.2%CVE-2026-75145MEDIUMFFmpeg Integer Narrowing Conversion OOB Memory Access in AV1 RTP PacketizerEPSS 0.2%CVE-2026-21069MEDIUMIncorrect conversion between numeric types in VC1 codec in libsavsvc.so prior to SMR Aug-2026 Release 1 allows local attackers to write out-EPSS 0.2%CVE-2021-37661MEDIUMCrash caused by integer conversion to unsigned in TensorFlowEPSS 0.2%