Fallos del tipo CWE-681

72 resultados

Conversão incorreta entre tipos numéricos

Ocorre quando o código converte um número de um tipo para outro (ex: int para char, long para int) sem validar se o valor cabe no tipo destino, causando truncamento, overflow ou underflow. Isso pode levar a cálculos incorretos, desvios lógicos ou até execução de código malicioso.

Ejemplo

Um desenvolvedor recebe um tamanho de buffer como long vindo de uma requisição e o converte diretamente para int sem checar. Se o valor for maior que INT_MAX, o int resultante fica negativo ou muito pequeno, e a alocação de memória falha ou aloca menos espaço que o esperado, criando um buffer overflow.

Cómo mitigar

Sempre validar o valor antes de converter: verificar se ele está dentro do intervalo válido do tipo destino. Use bibliotecas ou funções seguras que detectam overflow (como __builtin_add_overflow em C, ou métodos nativos de linguagens mais modernas), e favoreça tipos maiores quando a origem é desconhecida.

CVE-2023-21736HIGHMicrosoft Office Visio Remote Code Execution VulnerabilityEPSS 0.7%CVE-2026-69438HIGHMicrosoft JScript Remote Code Execution VulnerabilityEPSS 0.7%CVE-2024-1552HIGHIncorrect code generation could have led to unexpected numeric conversions and potential undefined behavior.*Note:* This issue only affects EPSS 0.7%CVE-2022-40225MEDIUMA vulnerability has been identified in SIPLUS TIM 1531 IRC (6AG1543-1MX00-7XE0) (All versions < V2.4.8), TIM 1531 IRC (6GK7543-1MX00-0XE0) (EPSS 0.6%CVE-2021-3444HIGHLinux kernel bpf verifier incorrect mod32 truncationEPSS 0.6%CVE-2023-23401HIGHWindows Media Remote Code Execution VulnerabilityEPSS 0.6%CVE-2026-25989HIGHImageMagick has integer overflow or wraparound and incorrect conversion between numeric types in the internal SVG decoderEPSS 0.6%CVE-2025-53733HIGHMicrosoft Word Remote Code Execution VulnerabilityEPSS 0.5%CVE-2025-24059HIGHWindows Common Log File System Driver Elevation of Privilege VulnerabilityEPSS 0.5%CVE-2026-24174HIGHNVIDIA Triton Inference Server contains a vulnerability where an attacker could cause a server crash by sending a malformed request to the sEPSS 0.5%CVE-2024-7747MEDIUMWallet for WooCommerce <= 1.5.6 - Authenticated (Subscriber+) Incorrect Conversion between Numeric TypesEPSS 0.5%CVE-2026-4602HIGHVersions of the package jsrsasign before 11.1.1 are vulnerable to Incorrect Conversion between Numeric Types due to handling negative exponeEPSS 0.5%CVE-2023-29346HIGHNTFS Elevation of Privilege VulnerabilityEPSS 0.5%CVE-2026-53923MEDIUMvLLM GGUF Kernels: int64_t to int truncation of tensor dimensions causes GPU buffer overflowEPSS 0.5%CVE-2026-55123HIGHMicrosoft PowerPoint Remote Code Execution VulnerabilityEPSS 0.5%CVE-2026-26178HIGHWindows Advanced Rasterization Platform Elevation of Privilege VulnerabilityEPSS 0.4%CVE-2026-77412HIGHRabbitMQ amqp091-go: Denial of Service via Malicious Field Length in AMQP ClientEPSS 0.4%CVE-2025-58063HIGHCoreDNS: DNS Cache Pinning via etcd Lease ID ConfusionEPSS 0.4%CVE-2026-53466MEDIUMImageMagick: Heap Buffer Over-Read in XCF decoder due to integer conversion overflowEPSS 0.4%CVE-2026-21688HIGHiccDEV has Type Confusion in SIccCalcOp::ArgsPushed() at IccProfLib/IccMpeCalc.cppEPSS 0.4%