CVE Catalog

CVE-2026-59331

HighCVSS 7.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.54%

47th percentile - higher than 47% of all known CVEs

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 and used it directly to size a memory allocation without validating it was a reasonable, non-negative size relative to available data. A single crafted authentication frame could cause an extremely large allocation.

Risk Assessment

An unauthenticated attacker able to open a connection to the RSocket endpoint can exhaust server memory, causing denial of service. This affects applications using the default authentication converter in RSocket.

Recommendation

Update Spring Security to a version with the fix, or override the authentication converter in AuthenticationPayloadInterceptor. Restrict access to RSocket endpoints to trusted networks.

Other vulnerabilities in Spring Security

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS