Get ahead
VMware offers training and certification to turbo-charge your progress.
Learn moreSpring 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:
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.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.
Spring Security:
| Fix version | Availability |
|---|---|
| 7.1.3 | OSS |
| 7.1.2.1 | Enterprise Support Only |
| 7.0.9 | OSS |
| 7.0.8.1 | Enterprise Support Only |
| 6.5.13 | Enterprise Support Only |
| 6.4.20 | Enterprise Support Only |
| 5.8.29 | Enterprise Support Only |
| 5.7.27 | Enterprise Support Only |
No further mitigation steps are necessary.
This vulnerability was discovered and responsibly reported by h1ei1 and Daehyun Kang.
To report a security vulnerability for a project within the Spring portfolio, see the Security Policy