# CVE-2026-59331: Spring Security RSocket Basic Authentication Decoder Enables Denial of Service via Unbounded Allocation

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 5.7.27, 5.8.29, 6.4.20, 6.5.13, 7.0.8.1, 7.0.9, 7.1.2.1, 7.1.3 (CNA); fix release not confirmed
- Status: published
- Published: 2026-12-02 · Modified: 2026-12-02
- Record: https://cvemate.com/vulnerability/CVE-2026-59331 · JSON: https://cvemate.com/vulnerability/CVE-2026-59331/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.542%, percentile 47.029%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- spring 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

## References

- <https://spring.io/security/cve-2026-59331>
- <https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H&version=3.1>

---

Data as of 2026-12-05T03:50:44.744Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
