CVE-2022-22947 — Vulnerability in...
Spring Cloud Gateway vulnerable to Code Injection when Gateway Actuator endpoint enabled, exposed, unsecured
What Should I Do?
Patch Immediately
This vulnerability is confirmed under active exploitation (CISA KEV). Patch within 24-48 hours if possible.
Summary
Advisory Timeline
- First published March 4, 2022 (1683 days ago).
- Last revised February 16, 2024 — 714 days after initial publication.
- Added to CISA's Known Exploited Vulnerabilities catalog 73 days after publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 3.1.1 for org.springframework.cloud:spring-cloud-gateway -->
<!-- Update pom.xml dependency version to 3.0.7 for org.springframework.cloud:spring-cloud-gateway -->
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: maven (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| org.springframework.cloud:spring-cloud-gateway | maven | 3.1.0 | 3.1.1 |
| org.springframework.cloud:spring-cloud-gateway | maven | 1.0.0.RELEASE, 1.0.1.RELEASE, 1.0.2.RELEASE, 1.0.3.RELEASE (+29 more) | 3.0.7 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-917
- CWE-94Code InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 10.0 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-22947ADVISORY
- https://tanzu.vmware.com/security/cve-2022-22947WEB
- https://www.oracle.com/security-alerts/cpuapr2022.htmlWEB
- https://www.oracle.com/security-alerts/cpujul2022.htmlWEB
- https://packetstormsecurity.com/files/166219/Spring-Cloud-Gateway-3.1.0-Remote-Code-Execution.htmlWEB
- https://packetstormsecurity.com/files/168742/Spring-Cloud-Gateway-3.1.0-Remote-Code-Execution.htmlWEB
Frequently Asked Questions
- What is CVE-2022-22947?
- Spring Cloud Gateway vulnerable to Code Injection when Gateway Actuator endpoint enabled, exposed, unsecured This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 10.0/10).
- How do I check if my project is affected by CVE-2022-22947?
- CVE-2022-22947 affects org.springframework.cloud:spring-cloud-gateway. This vulnerability is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, meaning it is being actively exploited in the wild. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-22947 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation is straightforward and causes maximum impact. Patch immediately.
This vulnerability is in CISA's Known Exploited Vulnerabilities (KEV) catalog, indicating active exploitation in the wild.
Added to KEV catalog: May 16, 2022
Remediation deadline: June 6, 2022
Also Known As
Related CVEs
- CVE-2026-40982CRITICAL
Spring Cloud Config vulnerable to Path Traversal
- CVE-2026-107726CRITICAL
Hazelcast allows arbitrary member memory access by low-privileged client
- CVE-2026-107282CRITICAL
AsyncHttpClient: Replay to a different host sends the original host request and credentials to the new host
- CVE-2024-37084CRITICAL
Remote code execution in Spring Cloud Data Flow
- CVE-2025-41243CRITICAL
Spring Expression language property modification using Spring Cloud Gateway Server WebFlux
- CVE-2026-22739HIGH
Spring Cloud Config Server: Path Traversal via Profile Parameter Allows Arbitrary File Access
- CVE-2025-41235HIGH
Spring Cloud Gateway Server Forwards Headers from Untrusted Proxies
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies