Uncontrolled Memory Allocation in Spring Security - CVE-2026-59331

 

Uncontrolled Memory Allocation in Spring Security - CVE-2026-59331

Published: November 20, 2026


Vulnerability identifier: #VU168590
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-59331
CWE-ID: CWE-789
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service by exhausting server memory.

The vulnerability exists due to unbounded memory allocation in BasicAuthenticationPayloadExchangeConverter when decoding RSocket Basic Authentication metadata. A remote attacker can send authentication metadata to trigger excessive memory allocation and cause a denial of service.


Affected software

Spring Security

How to mitigate CVE-2026-59331

Install security update from vendor's website.

Spring Security - addressed in versions 5.7.27, 5.8.29, 6.4.20, 6.5.13, 7.0.8.1, 7.0.9, 7.1.2.1, 7.1.3

External References

Related Security Bulletins