CVE-2022-22947

CRITICAL(10.0)KEVLikely Exploited

VMware Spring Cloud Gateway Code Injection Vulnerability

Description

CVE-2022-22947 is a code injection vulnerability in VMware Spring Cloud Gateway that allows remote code execution when the Gateway Actuator endpoint is enabled, exposed, and unsecured. An attacker can exploit this flaw to inject arbitrary Spring Expression Language (SpEL) expressions through the Actuator API, leading to execution of arbitrary code on the server. CISA has confirmed active exploitation and included CVE-2022-22947 in the Known Exploited Vulnerabilities (KEV) catalog. With an EPSS percentile of 99.99%, this is among the most actively exploited Java framework vulnerabilities, representing a critical threat to organizations running Spring Cloud Gateway with exposed Actuator endpoints.

KEV Information

Vendor
VMware
Product
Spring Cloud Gateway
Date Added
May 16, 2022
Due Date
June 6, 2022
Required Action
Apply updates per vendor instructions.

CVSS Score

Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:HOpen in Calculator
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
CHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
Exploitability Score
3.9
Impact Score
6.0

CWEs

Affected Products

VendorProductVersion
vmwarespring cloud gateway< 3.0.7; 3.1.0
oraclecommerce guided search11.3.2
oraclecommunications cloud native core binding support function1.11.0; 22.1.3
oraclecommunications cloud native core console22.2.0
oraclecommunications cloud native core network exposure function22.1.0
oraclecommunications cloud native core network function cloud native environment1.10.0
oraclecommunications cloud native core network repository function1.15.0; 1.15.1; 22.1.2; 22.2.0
oraclecommunications cloud native core network slice selection function1.8.0; 22.1.0
oraclecommunications cloud native core security edge protection proxy22.1.1
oraclecommunications cloud native core service communication proxy1.15.0

Multiple CVSS Assessments

Source: [email protected](Primary)
10.0
CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Source: 134c704f-9b21-4f2e-91b3-4a467353bcc0(Secondary)
10.0
CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

References

Weakness Type

CWE-94: Improper Control of Generation of Code (Code Injection)

CWE-94 describes a weakness where a product allows an attacker to inject and execute arbitrary code through specially crafted input. In CVE-2022-22947, Spring Cloud Gateway fails to properly validate and restrict expressions submitted through the Actuator endpoint, allowing an attacker to inject Spring Expression Language (SpEL) code that executes on the server with the privileges of the application.

Learn more: CWE-94 — Improper Control of Generation of Code (Code Injection)

Impact Analysis

CVE-2022-22947 is a code injection vulnerability in Spring Cloud Gateway that allows unauthenticated remote code execution when the Gateway Actuator endpoint is exposed without authentication. The attack is network-based and requires no authentication, no special privileges, and no user interaction — an attacker simply needs to send crafted HTTP requests to the Actuator endpoint. Successful exploitation allows the attacker to execute arbitrary code on the server with the full privileges of the Spring Cloud Gateway application, which typically runs as a Java process with significant system access. This can lead to complete server compromise including data theft, installation of backdoors, lateral movement within the network, and disruption of all services routed through the gateway. The EPSS percentile of 99.99% confirms that this vulnerability is virtually certain to be exploited. Spring Cloud Gateway is commonly deployed as an API gateway in microservices architectures, meaning a compromised gateway can intercept and manipulate all API traffic flowing through it, affecting multiple downstream services.

Exploit Maturity

CISA has confirmed active exploitation of CVE-2022-22947 by including it in the Known Exploited Vulnerabilities catalog with a remediation deadline of June 6, 2022. The EPSS percentile of 99.99% places this vulnerability at the absolute top of exploitation likelihood. Public proof-of-concept exploit code was published shortly after disclosure, and mass exploitation campaigns targeting exposed Spring Cloud Gateway Actuator endpoints were observed globally. The simplicity of the exploitation — requiring only HTTP requests with SpEL expressions — combined with the widespread deployment of Spring Cloud Gateway in cloud-native and microservices environments created a large attack surface. Multiple threat actors, including botnet operators and advanced persistent threat groups, were documented exploiting this vulnerability for cryptocurrency mining, webshell deployment, and data theft.

Remediation

  1. Update Spring Cloud Gateway to a version that addresses CVE-2022-22947 as specified in the VMware/Spring security advisory. CISA mandates remediation by June 6, 2022.
  2. Disable the Gateway Actuator endpoint if it is not required for operations. If the Actuator must remain enabled, secure it with strong authentication and restrict access to trusted management networks only.
  3. Implement network-level access controls to ensure that Actuator endpoints are never exposed to the public internet or untrusted network segments.
  4. Deploy a web application firewall (WAF) with rules to detect and block SpEL injection attempts in HTTP requests targeting Actuator endpoints.
  5. Audit all Spring Cloud Gateway deployments in your environment for exposed Actuator endpoints and review access logs for signs of exploitation, including unusual route creation requests or SpEL expressions in request parameters.

Technical Details

CVE-2022-22947 exploits the Spring Cloud Gateway Actuator endpoint's route creation functionality, which allows dynamic addition and modification of gateway routes through HTTP API calls. When an attacker sends a specially crafted request to create or modify a route, they can include a filter definition containing a Spring Expression Language (SpEL) expression. The Gateway processes this expression without adequate validation or sandboxing, causing it to be evaluated by the SpEL evaluation engine. SpEL is a powerful expression language that supports method invocation, object construction, and access to the Java runtime environment. By crafting a SpEL expression that calls Runtime.exec() or similar methods, an attacker can execute arbitrary operating system commands on the server. The attack flow typically involves: (1) sending a POST request to the Actuator routes endpoint to create a malicious route with a SpEL payload in a filter, (2) sending a POST request to the refresh endpoint to apply the route, and (3) sending a GET request to the new route to trigger the SpEL evaluation. The Actuator endpoint is disabled by default in newer Spring Boot versions, but many deployments enable it for monitoring purposes and fail to secure it properly.

Frequently Asked Questions

Is CVE-2022-22947 being actively exploited?

Yes, CVE-2022-22947 is being massively exploited. CISA has included it in the KEV catalog, and its EPSS percentile of 99.99% confirms it is among the most exploited vulnerabilities. Mass exploitation campaigns targeting exposed Spring Cloud Gateway Actuator endpoints have been widely documented.

What products are affected by CVE-2022-22947?

CVE-2022-22947 affects VMware Spring Cloud Gateway when the Actuator endpoint is enabled and exposed. Consult the VMware/Spring security advisory for the specific affected versions and upgrade to the patched release.

How do I fix CVE-2022-22947?

Update Spring Cloud Gateway to the patched version. Disable the Actuator endpoint if not needed, or secure it with authentication and network access controls. Never expose Actuator endpoints to the public internet.

How severe is CVE-2022-22947?

CVE-2022-22947 is a critical code injection vulnerability with an EPSS percentile of 99.99%. It allows unauthenticated remote code execution on API gateways that route traffic for multiple services. Compromise of a gateway can affect all downstream services and data flowing through it.

CVSS Score

10.0
CRITICAL(10.0)

EPSS Score

EPSS Score98.25%
EPSS Percentile99.9%

Dates

PublishedMarch 3, 2022
Last ModifiedJune 17, 2026
StatusAnalyzed
CVSS Versionv3.1

Need Help With Vulnerability Management?

Our security experts can help you prioritize and remediate vulnerabilities effectively.