CVE-2026-47842

Deterministic AES/CBC Encryption in Spring Security AesBytesEncryptor Allows Ciphertext Correlation

Published Aug 26, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
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

Analysis

AI-generated

Technical impact

AesBytesEncryptor uses a null (all‑zero) initialization vector when constructed with two arguments or when the IV generator is null, causing the AES/CBC encryption to be deterministic. This determinism enables an adversary to correlate ciphertext blocks and infer information about the plaintext without the key.

Affected Systems

Spring Security versions from 5.7.0 through 7.1.0 are affected, including the 5.7.x, 5.8.x, 6.4.x, 6.5.x, 7.0.x and the 7.1.0 release.

Risk and Exploitability

The CVSS score of 6.5 indicates a moderate risk. The EPSS score is less than 1 %, indicating a very low probability of exploitation, and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector is the use of a hard‑coded or null IV in applications that employ AesBytesEncryptor, allowing an attacker who can observe the encrypted output to perform ciphertext‑correlation attacks and reduce uncertainty about the underlying plaintext. No remote code execution is possible, but the confidentiality of sensitive data is compromised.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Spring Security to a patched release (e.g., 7.2.0 or later).
  • If an upgrade is not immediately possible, instantiate AesBytesEncryptor with a proper IV generator or provide a non‑null, random IV when encrypting.
  • Audit code to ensure no accidental usage of the two‑argument constructor or a null IV generator, and review encrypted data for patterns before the fix is applied.
  • Regularly check Spring Security’s official release notes or security advisories for the latest updates and apply patches promptly.

Generated by OpenCVE AI on September 4, 2026 at 23:00 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Vmware
Vmware spring Security
Weaknesses CWE-326
CPEs cpe:2.3:a:vmware:spring_security:*:*:*:*:*:*:*:*
Vendors & Products Vmware
Vmware spring Security
Type Values Removed Values Added
Weaknesses CWE-327
CWE-330
Type Values Removed Values Added
First Time appeared Spring
Spring spring Security
Weaknesses CWE-327
CWE-330
Vendors & Products Spring
Spring spring Security
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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
Title Deterministic AES/CBC Encryption in Spring Security AesBytesEncryptor Allows Ciphertext Correlation
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'}

Weaknesses
  • CWE-1204

    Generation of Weak Initialization Vector (IV)

  • CWE-326

    Inadequate Encryption Strength

Sources

Status
PUBLISHED
Assigner
vmware
Published
Updated
Aug 26, 2026, 7:45 PM
Reserved
May 20, 2026, 10:00 AM
Status
Analyzed
Published
Aug 26, 2026, 8:17 PM
Modified
Sep 4, 2026, 7:34 PM
Severity
Moderate
Public date
Aug 26, 2026, 7:22 PM