EVP_Cipher() in OpenSSL silently skips AEAD tag verification when processing empty ciphertexts with ChaCha20-Poly1305 or AES-OCB, returning success while providing zero authentication. This is not an edge case—empty ciphertexts are legitimate payloads in many protocols: heartbeat messages, acknowledgments, null-terminated records. An attacker who can inject empty ciphertexts into an AEAD-protected stream can inject arbitrary content that your code treats as authenticated.

The danger is in the trust inversion. When you call EVP_Cipher() for AEAD decryption, you're delegating the authentication decision to OpenSSL. The function's return value conflates two distinct concepts—decryption success and authentication success—under a single boolean. Empty ciphertexts trigger neither failure path: decryption succeeds because there's nothing to decrypt, and tag verification is silently skipped. Your code receives a successful return and proceeds as if the data is authenticated.

Audit your use of ChaCha20-Poly1305 and AES-OCB specifically. Check whether any code path can receive empty AEAD ciphertexts—if your protocol includes heartbeat messages, keepalive packets, or any fixed-structure control messages, they're potential injection points. If you're using a wrapper library around OpenSSL, verify whether it performs explicit tag verification or relies on EVP_Cipher()'s return value. Most wrappers do the latter.

FIPS mode provides no protection here—neither cipher is FIPS-approved, so environments that selected these ciphers precisely because they bypass FIPS validation are the most exposed. This creates a false sense of security: organizations believe they're protected by their cipher choice while actually inheriting the least-scrutinized code path in the library.

The fix belongs in your authentication logic, not just your OpenSSL version. Treat EVP_Cipher() success on empty input as unverified plaintext—implement explicit tag verification if you handle these payloads, or reject empty ciphertexts at your protocol boundary if your threat model permits.