Description
In Spring AMQP versions 2.2.0 - 2.2.19 and 2.3.0 - 2.3.11, the Spring AMQP Message object, in its toString() method, will create a new String object from the message body, regardless of its size. This can cause an OOM Error with a large message
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | Spring AMQP | Spring AMQP versions 2.2.X prior to 2.2.20 and 2.3.x prior to 2.3.12 . | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | spring | No fix yet | — |
| Ubuntu 26.04 LTS | spring | No fix yet | — |
| Ubuntu 25.10 | spring | No fix yet | — |
| Ubuntu 24.04 LTS | spring | No fix yet | — |
| Ubuntu 22.04 LTS | spring | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | spring | No fix yet | — |
| Ubuntu 18.04 LTS | spring | No fix yet | — |
| Ubuntu 16.04 LTS | spring | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.springframework.amqp:spring-amqp | >= 2.2.0, < 2.2.20 | 2.2.20 | GHSA-945q-ch46-pchg |
| Maven | org.springframework.amqp:spring-amqp | >= 2.3.0, < 2.3.11 | 2.3.11 | GHSA-945q-ch46-pchg |