Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › Vulnerabilities

CVE-2026-59331 — Spring Security

High · CVSS 7.5 First seen December 02, 2026

One of 6 Spring Security vulnerabilities published together by NVD: our article covers all of them.

VulnerabilitiesEndpoint security

Summary

Spring Security's RSocket support includes BasicAuthenticationPayloadExchangeConverter , which decodes username and password metadata from a non-standard RSocket Basic Authentication frame. The decoder read a length field from the incoming metadata and used it directly to size a memory allocation, without validating that the value was a reasonable, non-negative size relative to the data actually available. A single crafted authentication frame could therefore cause the server to attempt an extremely large allocation. Preconditions : The application uses Spring Security's RSocket support with an AuthenticationPayloadInterceptor that has not had its authentication converter overridden, leaving BasicAuthenticationPayloadExchangeConverter in effect as its default — as is the case, for example, with the deprecated RSocketSecurity#basicAuthentication configuration. The RSocket endpoint is reachable by the attacker. An unauthenticated attacker who can open a connection to the RSocket endpoint can exhaust available memory on the server, resulting in a denial of service.

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

High · 7.5 CVSS 3.1 base score from the CNA (vmware.com)

An attacker without an account can exploit this over the network, without any user action.

Attack from
the network (remotely)
Attack complexity
low (no special conditions)
Login needed
no
User action needed
no
Scope
stays within the vulnerable component
Impact
high on availability, none on confidentiality and integrity

Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected and fixed versions

ProductAffected versionsFixed in
Spring Security≥ 7.1.0, < 7.1.2.17.1.2.1
≥ 7.0.0, < 7.0.8.17.0.8.1
≥ 6.5.0, < 6.5.136.5.13
≥ 6.0.0, < 6.4.206.4.20
≥ 5.8.0, < 5.8.295.8.29
≥ 5.7.0, < 5.7.275.7.27
≥ 7.1.0, < 7.1.37.1.3
≥ 7.0.0, < 7.0.97.0.9

From the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Other references

Details from NVD (public domain).

Affected

  • Spring Security

What to do

  • Check whether you run an affected product or version and apply the vendor's update or mitigation.
  • Follow the vendor advisory and the references below for fixed versions and workarounds.

Frequently asked questions

What is CVE-2026-59331?

Spring Security's RSocket support includes BasicAuthenticationPayloadExchangeConverter , which decodes username and password metadata from a non-standard RSocket Basic Authentication frame. The decoder read a length field from the incoming metadata and used it directly to size a memory allocation, without validating that the value was a reasonable, non-negative size relative to the data actually available.

How severe is CVE-2026-59331?

CVE-2026-59331 has a CVSS 3.1 base score of 7.5 (high), from the CNA (vmware.com). An attacker without an account can exploit this over the network, without any user action.

Is CVE-2026-59331 being exploited?

Not as far as is known: CVE-2026-59331 is not in CISA's Known Exploited Vulnerabilities catalog as of December 2, 2026.

Which versions are affected by CVE-2026-59331?

Spring Security ≥ 7.1.0, < 7.1.2.1 (fixed in 7.1.2.1); Spring Security ≥ 7.0.0, < 7.0.8.1 (fixed in 7.0.8.1); Spring Security ≥ 6.5.0, < 6.5.13 (fixed in 6.5.13); Spring Security ≥ 6.0.0, < 6.4.20 (fixed in 6.4.20); and more, listed on this page.

How do I fix CVE-2026-59331?

Update to a fixed release: Spring Security 7.1.2.1; Spring Security 7.0.8.1; Spring Security 6.5.13.

Timeline & sources

References