CVE-2021-22051: Request injection in Spring Cloud Gateway
6.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.4064%
CWE
Published
11/10/2021
Updated
2/1/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.springframework.cloud:spring-cloud-gateway | maven | >= 3.0.0, < 3.0.5 | 3.0.5 |
org.springframework.cloud:spring-cloud-gateway | maven | >= 2.2.0, <= 2.2.10.RELEASE | 2.2.10.RELEASE0.5 |
Vulnerability Intelligence
Miggo AI
Root 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.