What’s Vulnerable › Vulnerabilities

CVE-2026-47842: Deterministic AES/CBC Encryption in Spring Security AesBytesEncryptor Allows Ciphertext Correlation

Description

Applications using AesBytesEncryptor with the two-argument constructor or when passing a null IV generator and CBC as the encryption mode encrypt data with AES/CBC using a null (all-zero) initialization vector. Spring Security 7.1.0 Spring Security 7.0.0 - 7.0.6 Spring Security 6.5.0 - 6.5.11 Spring Security 6.4.0 - 6.4.18 Spring Security 5.8.0 - 5.8.27 Spring Security 5.7.0 - 5.7.25

Affected products

How to fix

Upgrade to a fixed version: Spring Security 5.7.26, 5.8.28, 6.4.19, 6.5.12. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-47842 or the next vulnerability affects your stack