Medium
Security advisory
In Spring AMQP versions 2.2.0 - 2.2.18 and 2.3.0 - 2.3.10, the Spring AMQP Message object, in its toString() method, will deserialize a body for a message with content type application/x-java-serialized-object. It is possible to construct a malicious java.util.Dictionary object that can cause 100% CPU usage in the application if the toString() method is called.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-22097
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 06:31 UTC · Revision 1
Source evidence
In Spring AMQP versions 2.2.0 - 2.2.18 and 2.3.0 - 2.3.10, the Spring AMQP Message object, in its toString() method, will deserialize a body for a message with content type application/x-java-serialized-object. It is possible to construct a malicious java.util.Dictionary object that can cause 100% CPU usage in the application if the toString() method is called.
osv:CVE-2021-22097
Complete source record
{
"id": "207c0dbafcdd2ae72f4893913b5d1daa13c3b20a7e4fd926b973eb9a90cbe5df",
"url": "https://osv.dev/vulnerability/CVE-2021-22097",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-22097",
"summary": "In Spring AMQP versions 2.2.0 - 2.2.18 and 2.3.0 - 2.3.10, the Spring AMQP Message object, in its toString() method, will deserialize a body for a message with content type application/x-java-serialized-object. It is possible to construct a malicious java.util.Dictionary object that can cause 100% CPU usage in the application if the toString() method is called.",
"evidence": "osv:CVE-2021-22097",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2021-22097",
"aliases": [
"CVE-2021-22097",
"GHSA-fx7f-rjqj-52pj"
],
"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"
},
{
"last_affected": "2416fd0263da4563b3ace98788bca716745f2532"
},
{
"introduced": "0e6ef48c09c6d0d65d2876c7ca2c8b75c4545b54"
},
{
"last_affected": "6ff5915661cfc031f5cac82d2d9eb8983126b294"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:vmware:spring_advanced_message_queuing_protocol:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.2.0"
},
{
"last_affected": "2.2.18"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:vmware:spring_advanced_message_queuing_protocol:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.3.0"
},
{
"last_affected": "2.3.10"
}
],
"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-22097.json"
}
}
],
"modified": "2026-10-24T10:30:40.571737100Z",
"provider": "osv",
"references": [
"https://tanzu.vmware.com/security/cve-2021-22097"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-22097",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 434957,
"published_at": "2021-10-28T16:15:08.023+00:00"
}