Medium
Security advisory
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
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-22095
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 05:59 UTC · Revision 1
Source evidence
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
osv:CVE-2021-22095
Complete source record
{
"id": "39b1f63e975734beccbf499083bac1626aea70b38093a02a4c340e3870eb0d2b",
"url": "https://osv.dev/vulnerability/CVE-2021-22095",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-22095",
"summary": "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",
"evidence": "osv:CVE-2021-22095",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2021-22095",
"aliases": [
"CVE-2021-22095",
"GHSA-945q-ch46-pchg"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/spring-projects/spring-amqp",
"type": "GIT",
"events": [
{
"introduced": "e45f1a8ae69e88a2738a98b63d4dc7c20c6d44ff"
},
{
"fixed": "96487f72e6db02859231ec420d6aee0b047784b0"
},
{
"introduced": "0e6ef48c09c6d0d65d2876c7ca2c8b75c4545b54"
},
{
"fixed": "0db528d89635e8cb6b02631be2d2ecdbc267a655"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:vmware:spring_advanced_message_queuing_protocol:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.2.0"
},
{
"fixed": "2.2.19"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:vmware:spring_advanced_message_queuing_protocol:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.3.0"
},
{
"fixed": "2.3.11"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v2.3.10",
"v2.3.9",
"v2.3.8",
"v2.2.18.RELEASE",
"v2.3.7",
"v2.2.17.RELEASE",
"v2.3.6",
"v2.2.16.RELEASE",
"v2.3.5",
"v2.2.15.RELEASE",
"v2.3.4",
"v2.3.3",
"v2.2.14.RELEASE",
"v2.3.2",
"v2.2.13.RELEASE",
"v2.3.1",
"v2.3.0",
"v2.2.12.RELEASE",
"v2.2.11.RELEASE",
"v2.2.10.RELEASE",
"v2.2.9.RELEASE",
"v2.2.8.RELEASE",
"v2.2.7.RELEASE",
"v2.2.6.RELEASE",
"v2.2.5.RELEASE",
"v2.2.4.RELEASE",
"v2.2.3.RELEASE",
"v2.2.2.RELEASE",
"v2.2.1.RELEASE",
"v2.2.0.RELEASE"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-22095.json"
}
}
],
"modified": "2026-10-24T10:30:34.179939864Z",
"provider": "osv",
"references": [
"https://tanzu.vmware.com/security/cve-2021-22097"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-22095",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 433459,
"published_at": "2021-11-30T19:15:08.61+00:00"
}