Skip to content
High 7.5

Spring Security のRSocket認証処理に脆弱性、大量のメモリを確保させられ一時停止のおそれ

CVE-2026-59331 First seen on SecPulse

Summary

攻撃者が細工した認証フレームを送ると、サーバーが過大なメモリ確保を試みてサービス妨害(DoS)の状態になるおそれがあります。影響するのは、Spring Security 7.1.0以降7.1.3未満、7.0.0以降7.0.9未満、6.5.0以降6.5.13未満、6.4.0以降6.4.20未満、5.8.0以降5.8.29未満、5.7.0以降5.7.27未満です。7.1.3、7.0.9、6.5.13、6.4.20、5.8.29、5.7.27の修正版への更新が必要です。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

攻撃者が細工した認証フレームを送ると、サーバーが過大なメモリ確保を試みてサービス妨害(DoS)の状態になるおそれがあります。影響するのは、Spring Security 7.1.0以降7.1.3未満、7.0.0以降7.0.9未満、6.5.0以降6.5.13未満、6.4.0以降6.4.20未満、5.8.0以降5.8.29未満、5.7.0以降5.7.27未満です。7.1.3、7.0.9、6.5.13、6.4.20、5.8.29、5.7.27の修正版への更新が必要です。

Affected packages

PackageAffected → Fixed
SpringSpring Security
≥ 7.1.0, < 7.1.2.1→ 7.1.2.1
≥ 7.0.0, < 7.0.8.1→ 7.0.8.1
≥ 6.5.0, < 6.5.13→ 6.5.13
≥ 6.0.0, < 6.4.20→ 6.4.20
≥ 5.8.0, < 5.8.29→ 5.8.29
≥ 5.7.0, < 5.7.27→ 5.7.27
≥ 7.1.0, < 7.1.3→ 7.1.3
≥ 7.0.0, < 7.0.9→ 7.0.9
Original description The description as published by the 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.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details