Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
☕
☕ Maven
CISA KEV · ACTIVELY EXPLOITED
CRITICAL severity

CVE-2022-22947 — spring-cloud-gateway

CRITICAL

CVE-2022-22947 is a critical-severity (CVSS 10) Code Injection vulnerability in org.springframework.cloud:spring-cloud-gateway. It is in CISA's Known Exploited Vulnerabilities catalog (added 2022-05-16) — treat it as actively exploited and patch now. A fix is available for org.springframework.cloud:spring-cloud-gateway — see the affected versions and patch details below.

Spring Cloud Gateway vulnerable to Code Injection when Gateway Actuator endpoint enabled, exposed, unsecured

Also known asGHSA-3gx9-37ww-9qw6
Published
Updated
Affected
2 pkgs
Patched
2 / 2
Exploits
85 known
Exploitation data as of Oct 23, 2026 · OSV.dev, NVD, CISA KEV, FIRST.org (EPSS)

Exploitation Status

Actively exploited in the wild

  • Confirmed by CISA's Known Exploited Vulnerabilities catalog on 2022-05-16. Federal agencies were required to remediate by 2022-06-06.
  • CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
  • A successful exploit gives an attacker total control of the affected component, not partial access.

Exploitation and automatability from CISA (KEV catalog and SSVC triage) for CVE-2022-22947.

EPSS Exploitation Probability

via FIRST.org ↗
98.3%probability of exploitation in next 30 days
Very High Risk0.00%
Lower risk than most CVEs100th percentile — riskier than 100% of all scored CVEsHighest risk
93.3%95.3%97.4%99.4%94.5%98.3%Apr 26Aug 26Oct 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

CVE-2022-22947 by exploitation likelihood (EPSS) against impact (CVSS). In the shaded patch-first corner (EPSS 50%+, CVSS 7.0+).

Where this sits among everything scored

Of 395,249 CVEs with a current EPSS score, this one falls in the ≥ 90% band (highlighted). Counts from FIRST.org, log-scaled.

Real-World Exposure

2 pkgs affected
☕org.springframework.cloud:spring-cloud-gateway☕org.springframework.cloud:spring-cloud-gateway

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.

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 Packages

2 total 2 fixed
EcosystemPackageVulnerable rangeFix
☕Mavenorg.springframework.cloud:spring-cloud-gatewayall versions3.0.7org.springframework.cloud:spring-cloud-gateway:3.0.7
☕Mavenorg.springframework.cloud:spring-cloud-gateway≥ 3.1.0&&< 3.1.13.1.1org.springframework.cloud:spring-cloud-gateway:3.1.1

Affected Products

10 products · 16 configurations
Application
commerce guided searchoracle
1 version
11.3.2
Application
communications cloud native core binding support functionoracle
2 versions
1.11.022.1.3
Application
communications cloud native core consoleoracle
1 version
22.2.0
Application
communications cloud native core network exposure functionoracle
1 version
22.1.0
Application
communications cloud native core network function cloud native environmentoracle
1 version
1.10.0
Application
communications cloud native core network repository functionoracle
4 versions
1.15.01.15.122.1.222.2.0
Exploits & PoCs
85

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

EDB-50799webappsjava

Spring Cloud Gateway 3.1.0 - Remote Code Execution (RCE)

by Carlos E. Vieira · Mar 7, 2022

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.springframework.cloud:spring-cloud-gateway, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update org.springframework.cloud:spring-cloud-gateway to 3.0.7 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2022-22947 is resolved across your whole dependency graph.

  3. Workarounds

    Stop passing untrusted input into the interpreter or shell: call the affected binary with an argument array rather than a composed command string, reject anything outside a strict allowlist of expected values, and run the component under an account that cannot reach beyond the work it legitimately does.

How to detect CVE-2022-22947

A community-maintained Nuclei template exists for this CVE. You can scan for it directly:

nuclei -id cve-2022-22947 -u https://target
Template
Spring Cloud Gateway Code Injection
Severity
critical
Impact
Successful exploitation of this vulnerability could lead to remote code execution, compromising the confidentiality, integrity, and availability of the affected system.
Remediation
Apply the latest security patches provided by the vendor and ensure proper input validation to prevent code injection attacks.

Template by ProjectDiscovery nuclei-templates (pdteam), MIT licensed. View the full template. Scan only systems you are authorised to test.

Frequently Asked Questions

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.
O3 Security · Impact-Aware SCA

Is CVE-2022-22947 in your dependencies?

Find it across Maven, including transitive dependencies.

CVE-2022-22947: spring-cloud-gateway RCE (KEV)