HIGH

CVE-2026-59349

Spring Web Services Denial of Service via Unbounded Incoming Message Size

Description

SaajSoapMessageFactory, AxiomSoapMessageFactory, and DomPoxMessageFactory read an incoming message's InputStream directly into the underlying XML parser without any bound on the number of bytes consumed. An attacker who can reach any endpoint can send an arbitrarily large message and exhaust server memory.

This affects every deployment: there is no configuration precondition, as this is the default behavior of every message factory Spring-WS provides.

Fixed versions apply a default maximum message size of 10MB, controllable via the maxMessageSize property on each factory.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed 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

1affected artifacts
114affected versions
1,166dependent artifacts (est.)
40,616dependent versions

54% of the dependent artifacts (641) still pull an affected version in their latest release.

DepthDependent versions
Direct
6,156
2 hops
7,582
3 hops
5,357
4 hops
3,206
5 hops
4,459
6 hops
13,856

Most used dependents

Computed from the dependency graph of build 20261125.0317 (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.