CVE-2026-59331: Spring Security RSocket Basic Authentication Decoder Enables Denial of Service via Unbounded Allocation
Vulnerability summary
CVE-2026-59331 is a high (CVSS 7.5) vulnerability in spring spring security. EPSS estimates a 0.54% chance of exploitation in the next 30 days, higher than 47% of scored vulnerabilities.
Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
Source freshness unavailable
How is this decided?Timeline
- 02-12-2026PublishedVulnerability first disclosed.
Description
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.
CVSS metrics
2 scores · 2 sources · 1 version- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.54%
Chance of exploitation in the next 30 days
Percentile
47%
Versus all other CVEs
30-day change
Change unavailable
Change unavailable
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeNo weakness data has been published for this record.
Affected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Spring1 product
- spring security≥ 7.1.0, < 7.1.2.1 | ≥ 7.0.0, < 7.0.8.1 | ≥ 6.5.0, < 6.5.13 | ≥ 6.0.0, < 6.4.20 | ≥ 5.8.0, < 5.8.29 | ≥ 5.7.0, < 5.7.27 | ≥ 7.1.0, < 7.1.3 | ≥ 7.0.0, < 7.0.9
1 vendor · 1 product