CVE-2026-59349
Spring Web Services Memory Consumption via Oversized Incoming Messages
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.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.springframework.ws » spring-ws-core | <= 3.1.9>= 4.0.0, <= 4.0.19>= 4.1.0, <= 4.1.4>= 5.0.0, < 5.0.4 | 5.0.4 |
Blast radius
52% of the dependent artifacts (610) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 6,165 |
| 2 hops | 7,592 |
| 3 hops | 5,368 |
| 4 hops | 3,209 |
| 5 hops | 4,464 |
| 6 hops | 13,868 |
Most used dependents
- org.apache.camel.springboot » camel-core-starter564 usages
- org.apache.camel.springboot » camel-spring-boot-starter487 usages
- org.apache.camel.quarkus » camel-quarkus-maven-plugin302 usages
- org.apache.camel.quarkus » camel-quarkus-package-maven-plugin152 usages
- io.gravitee.gateway » gravitee-gateway-api140 usages
- org.apache.camel » camel-catalog92 usages
- org.springframework.boot » spring-boot-starter-web-services83 usages
- io.gravitee.policy » gravitee-policy-api77 usages
- com.consol.citrus » citrus-core69 usages
- io.gravitee.el » gravitee-expression-language56 usages
- io.gravitee.apim.repository » gravitee-apim-repository-api41 usages
- io.gravitee.apim.gateway » gravitee-apim-gateway-buffer40 usages
- org.springframework.ws » spring-ws-security40 usages
- com.consol.citrus » citrus-http40 usages
- org.apache.camel.springboot » camel-jackson-starter37 usages
Computed from the dependency graph of build 20261205.2030 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
