REDHAT-BUG-2588053: Low severity OpenSSL OpenSSL vulnerability
Issue summary: An application that passes additional authenticated data to EVPEncryptUpdate() or EVPDecryptUpdate() after the plaintext when using AES-SIV may have that data excluded from authentication, while the call still reports success.
Impact summary: Data an application intended to authenticate within a message is silently left unauthenticated. An attacker can forge the AAD in messages sent or received by such an application.
CWE: CWE-345: Insufficient Verification of Data Authenticity
Description: AES-SIV in the default provider is an AEAD mode, and EVPEncryptUpdate() and EVPDecryptUpdate() are expected to fold every piece of additional authenticated data (AAD) into the S2V state before the tag is computed. When an application supplies AAD after the plaintext, aessivcipher() still hands it to osslsiv128aad(), but the tag has already been computed and that state is never read again. The call returns success and leaves nothing on the error queue.
Only applications that use AES-SIV through the default provider and pass AAD in that order are exposed. The usual sequence, setting the tag and supplying AAD before the ciphertext, is unaffected, and OpenSSL's own TLS, QUIC and CMS implementations do not use AES-SIV this way. Other AEAD ciphers either reject late AAD or authenticate it.
A signer that supplies AAD after the plaintext produces a tag covering only the AAD sent before it, so an attacker can drop the later AAD and the message still verifies. The severity is Low because the flaw depends on an unusual call order chosen by the application.
FIPS impact: no The AES-SIV algorithms are not FIPS validated.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
When using AES-SIV, supply all additional authenticated data (AAD) before the plaintext so it is included in the authentication tag.
Event History
Frequently Asked Questions
Which applications are exposed?
Only applications using AES-SIV through the OpenSSL default provider are exposed, and only when they supply additional authenticated data after plaintext has been passed to EVP_EncryptUpdate() or EVP_DecryptUpdate().
What can an attacker do if an application is affected?
An attacker can forge the additional authenticated data in messages sent to or received by the affected application. The data the application intended to authenticate may be silently excluded from authentication.
Does a successful EVP_EncryptUpdate() or EVP_DecryptUpdate() call show that the AAD was authenticated?
No. In the affected call order, the operation reports success and does not place an error on the error queue even though AAD supplied after plaintext is not incorporated into the authentication tag.
What can be done before a patch is available?
Ensure the application supplies AAD before plaintext or ciphertext processing, following the unaffected sequence described: set the tag and provide AAD before ciphertext. Review AES-SIV call sites for AAD passed after plaintext.