Miggo Logo

CVE-2021-22051: Request injection in Spring Cloud Gateway

6.5

CVSS Score
3.1

Basic Information

EPSS Score
0.4064%
Published
11/10/2021
Updated
2/1/2023
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:H/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.springframework.cloud:spring-cloud-gatewaymaven>= 3.0.0, < 3.0.53.0.5
org.springframework.cloud:spring-cloud-gatewaymaven>= 2.2.0, <= 2.2.10.RELEASE2.2.10.RELEASE0.5

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability occurs in Circuit Breaker error handling flow. The filter method's original error path reset response state before proper error handling, potentially allowing request reprocessing. The Resilience4J implementation's error handler lacked proper error suppression control. These functions would appear in stack traces when handling crafted requests that trigger CircuitBreakerStatusCodeException and subsequent error handling paths that could lead to duplicate downstream requests.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

*ppli**tions usin* Sprin* *lou* **t*w*y *r* vuln*r**l* to sp**i*i**lly *r**t** r*qu*sts t**t *oul* m*k* *n *xtr* r*qu*st on *ownstr**m s*rvi**s. Us*rs o* *****t** v*rsions s*oul* *pply t** *ollowin* miti**tion: *.*.x us*rs s*oul* up*r*** to *.*.*+, *

Reasoning

T** vuln*r**ility o**urs in *ir*uit *r**k*r *rror **n*lin* *low. T** `*ilt*r` m*t*o*'s ori*in*l *rror p*t* r*s*t r*spons* st*t* ***or* prop*r *rror **n*lin*, pot*nti*lly *llowin* r*qu*st r*pro**ssin*. T** `R*sili*n***J` impl*m*nt*tion's *rror **n*l*r