6 vulnerabilities classified as CWE-329 (在CBC加密模式中未使用随机化IV向量). AI Chinese analysis included.
CWE-329 represents a cryptographic weakness where a software system generates a predictable initialization vector (IV) for Cipher Block Chaining (CBC) mode encryption. This flaw undermines the security benefits of CBC, which relies on unique, unpredictable IVs to ensure that identical plaintext blocks produce distinct ciphertext blocks. Attackers typically exploit this vulnerability by leveraging the deterministic nature of the IV to perform dictionary or brute-force attacks, particularly when the same encryption key is reused across multiple sessions. By observing patterns in the ciphertext, adversaries can deduce information about the underlying plaintext or verify guesses about specific data segments. Developers can prevent this weakness by ensuring that IVs are generated using a cryptographically secure random number generator for each encryption operation, thereby guaranteeing uniqueness and unpredictability even when the same key is employed repeatedly.
EVP_CIPHER_CTX ctx; char key[EVP_MAX_KEY_LENGTH]; char iv[EVP_MAX_IV_LENGTH]; RAND_bytes(key, b); memset(iv,0,EVP_MAX_IV_LENGTH); EVP_EncryptInit(&ctx,EVP_bf_cbc(), key,iv);public class SymmetricCipherTest { public static void main() { byte[] text ="Secret".getBytes(); byte[] iv ={ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }; KeyGenerator kg = KeyGenerator.getInstance("DES"); kg.init(56); SecretKey key = kg.generateKey(); Cipher cipher = Cipher.getInstance("DES/CBC/PKCS5Padding"); IvParameterSpec ips = new IvParameterSpec(iv); cipher.init(Cipher.ENCRYPT_MODE, key, ips); return cipher.doFinal(inpBytes); } }| CVE ID | Title | CVSS | Severity | Published |
|---|---|---|---|---|
| CVE-2024-49783 | IBM OpenPages with Watson information disclosure — OpenPages with Watson | 5.3 | Medium | 2025-07-08 |
| CVE-2022-29054 | Fortinet FortiOS 安全漏洞 — FortiOS | 3.1 | Low | 2023-02-16 |
| CVE-2021-27499 | Ypsomed mylife App 安全特征问题漏洞 — Ypsomed mylife Cloud, mylife Mobile Application | 5.9 | - | 2021-08-02 |
| CVE-2020-5408 | Dictionary attack with Spring Security queryable text encryptor — Spring Security | 4.3 | - | 2020-05-14 |
| CVE-2017-3225 | Das 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 data — U-Boot | 3.9 | - | 2018-07-24 |
| CVE-2017-3226 | Das 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 data — U-Boot | 6.4 | - | 2018-07-24 |
Vulnerabilities classified as CWE-329 (在CBC加密模式中未使用随机化IV向量) represent 6 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.