Miggo Logo

CVE-2021-22095: Deserialization of Untrusted Data in Spring AMQP

6.5

CVSS Score
3.1

Basic Information

EPSS Score
0.68283%
Published
12/1/2021
Updated
5/15/2024
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.springframework.amqp:spring-amqpmaven>= 2.3.0, <= 2.3.102.3.11
org.springframework.amqp:spring-amqpmaven>= 2.2.0, <= 2.2.192.2.20

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The analysis focused on the changes made in the patch to the Message class, particularly how the toString() method and its called functions were modified to prevent OOM errors by limiting the size of the message body processed.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

In Sprin* *MQP v*rsions *.*.* - *.*.** *n* *.*.* - *.*.**, t** Sprin* *MQP M*ss*** o*j**t, in its toStrin*() m*t*o*, will *r**t* * n*w Strin* o*j**t *rom t** m*ss*** *o*y, r***r*l*ss o* its siz*. T*is **n **us* *n OOM *rror wit* * l*r** m*ss***

Reasoning

T** *n*lysis *o*us** on t** ***n**s m*** in t** p*t** to t** M*ss*** *l*ss, p*rti*ul*rly *ow t** `toStrin*()` m*t*o* *n* its **ll** *un*tions w*r* mo*i*i** to pr*v*nt OOM *rrors *y limitin* t** siz* o* t** m*ss*** *o*y pro**ss**.