CVE-2026-59349

Spring Web Services Memory Consumption via Oversized Incoming Messages

Published Nov 30, 2026 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
SaajSoapMessageFactory , AxiomSoapMessageFactory , and DomPoxMessageFactory do not limit the size of the incoming message they parse.



A remote client that sends an oversized message to a Spring Web Services endpoint can cause the application to consume an amount of memory proportional to the data it sends, which may result in an OutOfMemoryError for the request being processed.



Limiting the size of incoming requests is commonly the responsibility of the infrastructure in front of the application, such as a reverse proxy or an API gateway.



For the JMS, Mail, and XMPP transports, the message is already fully received by the underlying client library before Spring Web Services processes it, and its size is subject to the limits of the broker or server.



On the client side, an oversized response requires the application to call a malicious or compromised server.



This issue only affects deployments where all the following are true:







The application receives messages over HTTP from untrusted clients.



No request body size limit is enforced before the message reaches Spring Web Services.







Fixed versions harden the message factories by applying a default maximum message size of 10MB, which can be configured via the maxMessageSize property of each factory.

Analysis

AI-generated

Technical impact

SaajSoapMessageFactory, AxiomSoapMessageFactory, and DomPoxMessageFactory parse incoming SOAP messages without enforcing an upper bound on size. A remote client can send an oversized HTTP SOAP payload that consumes memory proportional to its length, potentially exhausting the JVM heap and triggering an OutOfMemoryError for the request thread, which can lead to a denial‑of‑service for that request or the whole application.

Affected Systems

Spring Web Services applications that accept HTTP SOAP messages from untrusted clients and use the default message factories are affected. The flaw exists in all Spring Web Services builds prior to the update that hardens the factories with a default 10 MB limit; the issue is present in the Saaj, Axiom, and DomPox factories.

Risk and Exploitability

The CVSS score of 5.3 indicates a moderate impact, and no EPSS value is available. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires that the application receives large HTTP requests without a pre‑request size limit, typically involving a back‑end proxy or API gateway that does not constrain body size. If an attacker can send such a payload, the application will experience amplified memory consumption, potentially leading to an OutOfMemoryError and service unavailability.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a patched version of Spring Web Services that includes the default 10 MB message size limit.
  • If an upgrade is not immediately possible, configure each message factory with the maxMessageSize property to a safe limit.
  • Enforce a request‑body size limit at the web server, reverse proxy, or API gateway that precedes the application to reject oversized requests before they reach Spring Web Services.

Generated by OpenCVE AI on November 30, 2026 at 15:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
References
History
Type Values Removed Values Added
Weaknesses CWE-770
Type Values Removed Values Added
Weaknesses CWE-399
CWE-400
Type Values Removed Values Added
Description SaajSoapMessageFactory , AxiomSoapMessageFactory , and DomPoxMessageFactory do not limit the size of the incoming message they parse. A remote client that sends an oversized message to a Spring Web Services endpoint can cause the application to consume an amount of memory proportional to the data it sends, which may result in an OutOfMemoryError for the request being processed. Limiting the size of incoming requests is commonly the responsibility of the infrastructure in front of the application, such as a reverse proxy or an API gateway. For the JMS, Mail, and XMPP transports, the message is already fully received by the underlying client library before Spring Web Services processes it, and its size is subject to the limits of the broker or server. On the client side, an oversized response requires the application to call a malicious or compromised server. This issue only affects deployments where all the following are true: The application receives messages over HTTP from untrusted clients. No request body size limit is enforced before the message reaches Spring Web Services. Fixed versions harden the message factories by applying a default maximum message size of 10MB, which can be configured via the maxMessageSize property of each factory.
Title Spring Web Services Memory Consumption via Oversized Incoming Messages
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

Subscriptions

No data.

Weaknesses
  • CWE-399
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
vmware
Published
Updated
Nov 30, 2026, 3:58 PM
Reserved
Jul 4, 2026, 6:14 PM
Status
Received
Published
Nov 30, 2026, 8:17 AM
Modified
Nov 30, 2026, 4:17 PM