Get ahead
VMware offers training and certification to turbo-charge your progress.
Learn moreSaajSoapMessageFactory, 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.
Spring Web Services:
| Fix version | Availability |
|---|---|
| 5.0.3.1 | Enterprise Support Only |
| 5.0.4 | OSS |
| 4.1.5 | Enterprise Support Only |
| 4.0.20 | Enterprise Support Only |
| 3.1.10 | Enterprise Support Only |
If you cannot upgrade immediately, restrict the size of incoming requests before they reach Spring Web Services:
The issue was identified and responsibly reported by Yu Bao from PayPal Cybersecurity Team.
To report a security vulnerability for a project within the Spring portfolio, see the Security Policy