Public Security Advisories
Coordinated vulnerability disclosures from Argus. Findings, impact, and remediation, published in good faith.
In the OpenSSL-compatible EVP layer, ARIA-GCM initialisation accepts a NULL IV and returns success without setting a nonce. The context then encrypts and decrypts every message with its zero-filled IV buffer as the GCM nonce, so all messages under one key share a keystream.
After each ARIA-GCM message, the EVP layer zeroes the context IV and then copies the unadvanced nonce from the cipher state back into it. A context reused for further messages without a new IV encrypts them under the first message's key and nonce, and every call returns success.
After each AES-CCM message, the EVP layer zeroes the context IV and then copies the unchanged nonce from the AES state back into it. The control that would advance the nonce is not implemented for CCM. A context reused for further messages without a new IV encrypts them under the first message's key and nonce.
After each SM4-GCM message, the EVP layer zeroes the context IV, and the IV store helper then copies that zeroed buffer into the SM4 state where other ciphers restore a nonce. Later messages on the same context are sealed under the key with an all-zero nonce, and every call returns success.
After each SM4-CCM message, the EVP layer zeroes the context IV, and the IV store helper then copies that zeroed buffer into the SM4 state where other ciphers restore a nonce. Later messages on the same context are processed under the key with an all-zero nonce, and every call returns success.
In the wolfSSL EVP compatibility layer, initializing AES-CBC or DES-EDE3-CBC with a key and a NULL IV on a fresh context succeeds and leaves the IV register at zero. Every message under that key is then encrypted with the same all-zero IV, and no error is reported.
In the wolfSSL EVP compatibility layer, initializing single-DES CBC with a key and a NULL IV succeeds, and the DES key setup sets the IV register to zero. Every message under that key is then encrypted with the same all-zero IV, and no error is reported.
In the wolfSSL EVP compatibility layer, initializing AES-CTR with a key and a NULL IV on a fresh context succeeds and leaves the counter block at zero. Every message initialized this way under the same key is encrypted with the same keystream, and no error is reported.
In the wolfSSL EVP compatibility layer, the nine AES-CFB1, CFB8 and CFB128 initialization branches accept a key with a NULL IV on a fresh context and leave the IV register at zero. Every message under that key then starts from the same keystream, and no error is reported.
In the wolfSSL EVP compatibility layer, initializing AES-OFB with a key and a NULL IV on a fresh context succeeds and leaves the start block at zero. OFB derives its keystream from the key and that block alone, so every message under the key is encrypted with the same keystream.
In the wolfSSL EVP compatibility layer, the AES-XTS initialization branches write sixteen zero bytes into the tweak when the IV argument is NULL and return success. Every data unit under the key is then encrypted with tweak zero, so equal plaintext units give equal ciphertext units.
wolfSSL_EVP_CipherInit keeps a previously set IV when a context is re-initialized without one, but it decides that an IV exists from the IV size field, which is set whether or not an IV was given. A cipher-then-key initialization with no IV programs sixteen zero bytes as the IV and returns success.
The EVP_CTRL_GCM_IV_GEN control tests whether a key is set by reading the AES member of the cipher union, also when the context holds SM4-GCM state. For SM4-GCM the test is decided by unrelated bytes, so the control can fail on a keyed context or succeed on an unkeyed one.
// No embargoed advisories.