Falhas do tipo CWE-682

103 resultados

Cálculo incorreto ou lógica aritmética falha

O software realiza operações matemáticas ou lógicas com erros que resultam em valores incorretos, violando a semântica esperada. Isso inclui overflow, underflow, arredondamentos errados, precedência de operadores mal interpretada ou condições lógicas invertidas. O impacto varia: pode levar a contornos de segurança, alocações de memória indevidas, saltos de autenticação ou comportamentos inesperados em decisões críticas.

Exemplo

Um código calcula o tamanho de um buffer como (quantidade * tamanho_unitário) sem verificar overflow; com valores grandes, o resultado fica menor que o esperado e ocorre estouro de buffer. Outro caso: validação que usa >= quando deveria usar >, permitindo acesso um byte além do limite.

Como mitigar

Use bibliotecas de aritmética segura (como safe_math em Rust ou Apache Commons Lang em Java); revise cálculos críticos com testes de boundary (valores mínimos, máximos, zero); valide explicitamente resultados intermediários antes de usá-los em decisões ou alocações; aplique code review focado em operações matemáticas.

CVE-2026-53706HIGHPREVAIL: ALU32 pointer arithmetic accepted without is64 gate — verifier emits false PASS for pointer-corrupting programsEPSS 0.5%CVE-2026-116541HIGHnetty-tcnative before 2.0.84.Final Denial of Service via BIO Write OvercountEPSS 0.5%CVE-2026-47247HIGHlibheif Vulnerable to Heap Information Disclosure via Grid Image Gap + Uninitialized Pixel Plane AllocationEPSS 0.5%CVE-2026-20270HIGHCisco IOS XE Software Security Hardening ReleaseEPSS 0.5%CVE-2024-34704MEDIUMera-compiler-solidity contains a `xor(zext(cmp), -1)` misoptimizationEPSS 0.5%CVE-2023-31347MEDIUMDue to a code bug in Secure_TSC, SEV firmware may allow an attacker with high privileges to cause a guest to observe an incorrect TSC when SEPSS 0.5%CVE-2026-45988CRITICALrxrpc: Fix re-decryption of RESPONSE packetsEPSS 0.5%CVE-2026-10512LOWX25519 x86_64 assembly final reduction leaves non-canonical field elementEPSS 0.5%CVE-2026-20236HIGHMultiple Cisco Products Snort 3 Software Hardening Release: October 2026EPSS 0.4%CVE-2026-101963HIGHJunos OS and Junos OS Evolved: A BGP EVPN neighbor causes an rpd crash when SRv6 multihoming is usedEPSS 0.4%CVE-2026-16363CRITICALJIT miscompilation in the JavaScript: WebAssembly componentEPSS 0.4%CVE-2026-54754CRITICALKlever-Go: Marketplace settlement mints KLV when referral % + royalty % exceed the bid (negative seller share silently skipped)EPSS 0.4%CVE-2026-18459HIGHIncorrect Calculation vulnerability in RTI Connext Professional (Core Libraries) allows Abuse Existing Functionality.EPSS 0.4%CVE-2026-1229LOWIncorrect calculation in CIRCL secp384r1 CombinedMultEPSS 0.4%CVE-2023-36980—An issue in Ethereum Blockchain v0.1.1+commit.6ff4cd6 cause the balance to be zeroed out when the value of betsize+casino.balance exceeds thEPSS 0.4%CVE-2025-55552MEDIUMpytorch v2.8.0 was discovered to display unexpected behavior when the components torch.rot90 and torch.randn_like are used together.EPSS 0.4%CVE-2026-46244CRITICALnetfilter: nft_inner: Fix IPv6 inner_thoff desyncEPSS 0.4%CVE-2026-76043HIGHIncorrect calculation in V8 in Google Chrome prior to 151.0.7922.169 allowed a remote attacker to execute arbitrary code inside the sandbox EPSS 0.4%CVE-2026-24783HIGHsoroban-fixed-point-math has Incorrect Rounding and Overflow Handling in Signed Fixed-Point Math with NegativesEPSS 0.4%CVE-2024-45056MEDIUM`fold (xor (shl 1, x), -1) -> (rotl ~1, x)` misoptimization in zksolcEPSS 0.4%