# CVE-2022-22947: Spring Cloud Gateway - RCE

> Live exploitation tracking for CVE-2022-22947 by the CrowdSec Live Exploit Tracker, built from real-world attack data crowdsourced from CrowdSec's global network.

Page: https://tracker.crowdsec.net/cves/CVE-2022-22947

## Key facts

- **Exploitation phase:** Background Noise. Continuous low-level scanning or exploitation attempts are observed, mostly opportunistic and automated.
- **CVSS score:** 10.0
- **Public exploit available:** Yes
- **Affected products:** VMware Spring Cloud Gateway
- **Weaknesses:** CWE-94 (Improper Control of Generation of Code ('Code Injection'))
- **Tags:** web_application, java

## 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.

## CrowdSec analysis

[CVE-2022-22947](https://euvd.enisa.europa.eu/vulnerability/CVE-2022-22947) is a critical vulnerability in Spring Cloud Gateway that enables remote code execution through an exposed actuator endpoint, allowing attackers to inject arbitrary configuration and execute commands.

CrowdSec has been tracking this vulnerability and its exploits since 19th of April 2024.

CrowdSec network data shows that most actors exploiting CVE-2022-22947 rely on broad, untargeted scans with minimal filtering. The activity is largely automated and opportunistic in nature.
Data from the CrowdSec community also indicates a gradual decrease in attacks targeting CVE-2022-22947. While still present in the wild, exploitation levels have dropped noticeably week-over-week. This may signal that the vulnerability is becoming less relevant or that defenses are improving fast enough for attackers to lose interest.

Observed exploitation attempts typically focus on URLs containing `/actuator/gateway/routes`.

## Timeline

- 2022-03-03: CVE Published. CVE-2022-22947 is published to NVD.
- 2022-05-16: CISA KEV. CVE-2022-22947 is added to the Known Exploited Vulnerabilities catalog by CISA.
- 2022-06-06: CISA Remediation Deadline. Expiration of the CISA remediation deadline as described in [BOD 22-01](https://www.cisa.gov/news-events/directives/bod-22-01-reducing-significant-risk-known-exploited-vulnerabilities).
- 2024-04-19: Rule Released. CrowdSec releases a rule to detect CVE-2022-22947 exploitation attempts against the CrowdSec Network.
- 2024-11-23: CrowdSec First Seen. CrowdSec observes in-the-wild exploitation of CVE-2022-22947 for the first time.

## References

- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-22947.yaml

## Live exploitation data

The [Live Exploit Tracker page](https://tracker.crowdsec.net/cves/CVE-2022-22947) follows observed exploitation activity for CVE-2022-22947. [Request an API key](https://tracker.crowdsec.net/request-api-key) for full access to its exploitation timeline, attacking IP addresses and blocklists.
