Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.springframework.amqp/spring-amqp
  4. ›
  5. CVE-2021-22095

CVE-2021-22095: Deserialization of Untrusted Data

November 30, 2021 (updated May 14, 2024)

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.

References

  • nvd.nist.gov/vuln/detail/CVE-2021-22095
  • tanzu.vmware.com/security/cve-2021-22097

Code Behaviors & Features

Detect and mitigate CVE-2021-22095 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 2.2.0 before 2.2.20, all versions starting from 2.3.0 before 2.3.11

Fixed versions

  • 2.2.20
  • 2.3.11

Solution

Upgrade to versions 2.2.20, 2.3.11 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-502: Deserialization of Untrusted Data

Source file

maven/org.springframework.amqp/spring-amqp/CVE-2021-22095.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:03 +0000.