Spring Web Services Memory Consumption via Oversized Incoming Messages
- State
- Published
- Severity
- 5.3 Medium
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Jul 4, 2026
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.
| Product | Versions |
|---|---|
| Spring Web Services Spring | 5.0.0 to before 5.0.3.1 Affected4.1.0 to before 4.1.5 Affected4.0.0 to before 4.0.20 Affectedbefore 3.1.10 Affected5.0.0 to before 5.0.4 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 3.1 | 5.3 Medium | vmware |
Weaknesses
- CWE-770 Allocation of Resources Without Limits or Throttling
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.