Weaknesses of type CWE-329

13 results

Uso de IV previsível em modo CBC

Quando você criptografa dados em modo CBC (Cipher Block Chaining) usando um vetor de inicialização (IV) previsível ou reutilizado, um atacante consegue deduzir padrões nos dados criptografados ou até recuperar o plaintext sem quebrar a chave. O IV precisa ser aleatório e único a cada criptografia; caso contrário, a segurança do CBC desaba.

Example

Um sistema de pagamento que criptografa números de cartão em CBC sempre usando IV = 0 ou sequencial (1, 2, 3...). Um atacante observa que o mesmo cartão sempre produz o mesmo início de ciphertext e consegue montar um dicionário de cartões criptografados, ou usa análise de padrões para inferir dados sensíveis.

How to mitigate

Gere um IV aleatório e criptograficamente seguro para cada mensagem (use SecureRandom ou equivalente da sua linguagem), transmita-o junto ao ciphertext (não é secreto, apenas deve ser imprevisível), e nunca reutilize o mesmo IV com a mesma chave. Considere usar modos modernos como GCM ou ChaCha20-Poly1305, que gerenciam isso melhor.

CVE-2014-3566LOWThe SSL protocol 3.0, as used in OpenSSL through 1.0.1i and other products, uses nondeterministic CBC padding, which makes it easier for manEPSS 100.0%CVE-2008-5161LOWError handling in the SSH protocol in (1) SSH Tectia Client and Server and Connector 4.0 through 4.4.11, 5.0 through 5.2.4, and 5.3 through EPSS 15.4%CVE-2020-5408Dictionary attack with Spring Security queryable text encryptorEPSS 1.6%CVE-2022-46397HIGHFP.io VPP (Vector Packet Processor) 22.10, 22.06, 22.02, 21.10, 21.06, 21.01, 20.09, 20.05, 20.01, 19.08, and 19.04 Generates a Predictable EPSS 0.6%CVE-2021-27499Ypsomed mylife Cloud, mylife Mobile Application, Ypsomed mylife Cloud: All versions prior to 1.7.2, Ypsomed mylife App: All versions prior tEPSS 0.5%CVE-2017-3225Das U-Boot's AES-CBC encryption feature uses a zero (0) initialization vector that may allow attacks against the underlying cryptographic implementation and allow an attacker to decrypt the dataEPSS 0.3%CVE-2024-49783MEDIUMIBM OpenPages with Watson information disclosureEPSS 0.3%CVE-2017-3226Das U-Boot's AES-CBC encryption feature improperly handles an error condition and may allow attacks against the underlying cryptographic implementation and allow an attacker to decrypt the dataEPSS 0.3%CVE-2025-2814MEDIUMCrypt::CBC versions between 1.21 and 3.05 for Perl may use insecure rand() function for cryptographic functionsEPSS 0.2%CVE-2022-29054LOWA missing cryptographic steps vulnerability [CWE-325] in the functions that encrypt the DHCP and DNS keys in Fortinet FortiOS version 7.2.0,EPSS 0.2%CVE-2024-56141MEDIUMMinosoft has IV equal to keyEPSS 0.1%CVE-2026-45787MEDIUMelecterm's encrypt method not safe enoughEPSS 0.1%CVE-2026-14969MEDIUM389-ds-base: 389-ds-base: static initialization vector in aes-cbc/3des-cbc attribute encryptionEPSS 0.1%