Spring Security RSocket Basic Authentication Decoder Enables Denial of Service via Unbounded Allocation
- Exploited
- No known exploitation
- Fix
- Fixed in 7.1.2.1, 7.0.8.1, 6.5.13, 6.4.20, 5.8.29, and 3 more
- Who is exposed
- Not reported
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 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.
What to do
Upgrade to a fixed version: 7.1.2.1, 7.0.8.1, 6.5.13, 6.4.20, 5.8.29, or one of 3 more.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-59331 (Spring Security RSocket Basic Authentication Decoder Enables Denial of Service via Unbounded Allocation), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-59331 (entry last updated 2026-12-02):
Affected:
- Spring Spring Security: from 7.1.0, fixed in 7.1.2.1; from 7.0.0, fixed in 7.0.8.1; from 6.5.0, fixed in 6.5.13; from 6.0.0, fixed in 6.4.20; from 5.8.0, fixed in 5.8.29; from 5.7.0, fixed in 5.7.27; from 7.1.0, fixed in 7.1.3; from 7.0.0, fixed in 7.0.9
Fixed versions: 7.1.2.1, 7.0.8.1, 6.5.13, 6.4.20, 5.8.29, 5.7.27, 7.1.3, 7.0.9.
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
CISA KEV: CVE-2026-59331 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-59331 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.
Verify against the linked advisories before concluding, and cite the date you read each one:
- 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
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-59331
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-59331"}.Affected versions
- Spring Spring SecurityFrom 7.1.0 · fixed in 7.1.2.1; From 7.0.0 · fixed in 7.0.8.1; From 6.5.0 · fixed in 6.5.13; From 6.0.0 · fixed in 6.4.20; From 5.8.0 · fixed in 5.8.29; From 5.7.0 · fixed in 5.7.27; From 7.1.0 · fixed in 7.1.3; From 7.0.0 · fixed in 7.0.9
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure17/25No login or user action needed per the CVSS vector, reachable over the network without a login · Unknown: No advisory context yet
- Reach17/20Affects Spring (a widely deployed server, runtime, framework or database)
- Severity7.5/10CVSS 7.5
- No patch0/5No signal
What would change the score
- Would score about 87 if added to CISA KEV
- Would score about 82 if CISA's SSVC rates exploitation active
- Would score about 47 if advisories confirm default setups are exposed
Timeline
- CVE published
- First seen by cve.now
- Posted on X by cve.now
Evidence 5
| Kind | Source |
|---|---|
| Vendor advisory 1Establishes: Affected and fixed versions. | |
| Link | spring.io · security/cve-2026-59331 |
| CVE record 3Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-59331 |
| Record | NVD · CVE-2026-59331 |
| Link | 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 |
| Public exploit code 1Establishes: Public exploit code exists (Exploit-DB, Metasploit, Nuclei and GitHub). | |
| Exploit | GitHub · daehyuh/CVE-2026-59331 · Repository |
Questions about CVE-2026-59331
Is CVE-2026-59331 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
Which versions are affected by CVE-2026-59331?
Spring Security: from 7.1.0 before 7.1.2.1; from 7.0.0 before 7.0.8.1; from 6.5.0 before 6.5.13; from 6.0.0 before 6.4.20; from 5.8.0 before 5.8.29; from 5.7.0 before 5.7.27; from 7.1.0 before 7.1.3; from 7.0.0 before 7.0.9.
Source: cve.now feed data
How do I fix CVE-2026-59331?
Upgrade to a fixed version: 7.1.2.1, 7.0.8.1, 6.5.13, 6.4.20, 5.8.29, or one of 3 more.
Source: cve.now feed data
Related
- CVE-2026-59270Spring Security embedded UnboundID LDAP server exposes well-known administrative bind DN on all network interfaces
- CVE-2026-47877Spring Security Authorization Server Default Consent Page is vulnerable to Cross-Site Scripting (XSS)
- CVE-2026-41003Unencoded HTML Outputs in Spring Security May Allow Cross-Site Scripting
- CVE-2026-40988Unbounded DEFLATE Inflation in SAML 2.0 Service Provider
- CVE-2026-22754ervlet Path Not Correctly Included in Path Matching of XML Authorization Rules
- CVE-2026-59333Spring Security IP Address CIDR Matching Ignores Address Family
No corrections so far. Something wrong on this page? Report an error.