CVE-2022-22947
Spring Cloud Gateway vulnerable to Code Injection when Gateway Actuator endpoint enabled, exposed, unsecured
Also known as EDB-50799, GHSA-3gx9-37ww-9qw6
Mitigation
- Upgrade org.springframework.cloud:spring-cloud-gateway to one of 3.0.7, 3.1.1 (or later in the same release line).
Who should check
- Projects that depend on Maven package org.springframework.cloud:spring-cloud-gateway (< 3.0.7)
- Anyone running Spring Cloud Gateway Spring cloud gateway versions 3.1.x prior to 3.1.1+, 3.0.x prior to 3.0.7+ and all old and unsupported versions
Vulnerability facts
- Affected
- org.springframework.cloud:spring-cloud-gateway < 3.0.7
- Fixed in
- 3.0.7, 3.1.1
- Exploited in the wild
- Yes: in CISA KEV since 2022-05-16; federal due date 2022-06-06
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 10.0 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Changed (impact reaches other components)
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 95.57% chance of exploitation in 30 days (percentile 100, 2026-11-26)
- CWE
- CWE-94
- Modified
Description
In spring cloud gateway versions prior to 3.1.1+ and 3.0.7+ , applications are vulnerable to a code injection attack when the Gateway Actuator endpoint is enabled, exposed and unsecured. A remote attacker could make a maliciously crafted request that could allow arbitrary remote execution on the remote host.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven org.springframework.cloud:spring-cloud-gateway | < 3.0.7 | 3.0.7, 3.1.1 | osv |
| Spring Cloud Gateway | Spring cloud gateway versions 3.1.x prior to 3.1.1+, 3.0.x prior to 3.0.7+ and all old and unsupported versions | — | cvelist |
Timeline
- 2022-03-03 Published
- 2022-05-16 Added to CISA KEV (exploited in the wild)
- 2022-06-06 CISA remediation due date for US federal agencies
- 2026-06-17 Last modified
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2022-22947. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-22947.md Affected: org.springframework.cloud:spring-cloud-gateway < 3.0.7 Fixed in: 3.0.7, 3.1.1 Steps: 1. Search this machine and project for org.springframework.cloud:spring-cloud-gateway (Maven), Spring Cloud Gateway: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
Exploits and PoCs
FAQ
Is CVE-2022-22947 being exploited?
Yes. CISA lists CVE-2022-22947 in its Known Exploited Vulnerabilities catalog since 2022-05-16, which means attacks have been seen. Public exploit code or a proof of concept is available. EPSS estimates a 95.57% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-22947?
Critical: CVSS 10.0 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2022-22947?
org.springframework.cloud:spring-cloud-gateway < 3.0.7.
Is there a fix for CVE-2022-22947?
Yes. Fixed in 3.0.7, 3.1.1. Upgrade org.springframework.cloud:spring-cloud-gateway to one of 3.0.7, 3.1.1 (or later in the same release line).
How do I check if I'm affected by CVE-2022-22947?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.