CVE-2021-22044: Exposure of Resource to Wrong Sphere in Spring Cloud OpenFeign
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.57454%
CWE
Published
5/24/2022
Updated
1/27/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.springframework.cloud:spring-cloud-openfeign-core | maven | >= 3.0.0, <= 3.0.4 | 3.0.5 |
org.springframework.cloud:spring-cloud-openfeign-core | maven | >= 2.2.0, <= 2.2.9 | 2.2.10 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from processing class-level @RequestMapping annotations on Feign client interfaces. The key vulnerable functions are:
- processAnnotationOnClass: Directly handled class-level path mapping through the removed path prepending logic
- parseAndValidateMetadata: Indirectly enabled exposure through class-level header/produces/consumes inheritance Both were modified in the patch to reject class-level annotations and remove inheritance behavior. These functions would appear in stack traces when Spring processes Feign client interfaces with type-level @RequestMapping annotations, as they're responsible for translating annotations into HTTP endpoint mappings.