Skip to content
Threat Feed
critical advisory

VMware Spring Cloud Gateway Remote Code Execution (CVE-2022-22947)

CVE-2022-22947 is a critical remote code execution vulnerability in Spring Cloud Gateway allowing attackers to execute arbitrary code via malicious SpEL expressions injected into dynamic route configurations.

CVE search metadata

CVE search record: CVE-2022-22947. Severity: critical. CVSS: 10.0. EPSS: 98.25%. KEV: no. Product: Spring Cloud Gateway (< 3.0.7, 3.1.0). Brief: VMware Spring Cloud Gateway Remote Code Execution (CVE-2022-22947). Brief link: https://feed.craftedsignal.io/briefs/2026-10-spring-cloud-gateway-rce/

Triage facts

Revision 1
Applicability
Spring Cloud Gateway (< 3.0.7, 3.1.0)
Evidence
Unknown
Severity
Critical
Action
Immediate escalation
Sources
2 public sources
Freshness
Revision 1Oct 30, 09:40 UTC
Detection
1 rule
Vulnerabilities
1 CVE
Source quality
B2Likely

CVE-2022-22947 is a remote code execution (RCE) vulnerability in Spring Cloud Gateway. The vulnerability allows unauthenticated attackers to inject malicious Spring Expression Language (SpEL) expressions via the Actuator endpoint when creating dynamic routes. When the application refreshes its configuration, the injected expression is evaluated, resulting in arbitrary code execution on the underlying server.

Attack Chain

  1. Attacker identifies an exposed and unprotected Actuator endpoint on the target Spring Cloud Gateway instance.
  2. Attacker sends a POST request to /actuator/gateway/routes/{route_name} containing a JSON payload with a malicious SpEL expression in the filter arguments.
  3. Attacker sends a POST request to /actuator/gateway/refresh to trigger the application to load the new route configuration.
  4. Attacker sends an HTTP request matching the path defined in the newly created malicious route.
  5. The Gateway evaluates the injected SpEL expression during route processing.
  6. Arbitrary commands are executed by the application process with the privileges of the service user.

Impact

The vulnerability has a CVSS 3.1 score of 10.0 (Critical). Successful exploitation leads to full system compromise, allowing for remote code execution, unauthorized data access, and disruption of service.

Recommendation

  • Upgrade VMware Spring Cloud Gateway to version 3.1.1 or 3.0.7 or later.
  • Disable the Actuator endpoint if it is not required for operational monitoring.
  • If the Actuator endpoint is required, restrict network access using firewall rules or implement mandatory authentication via Spring Security to prevent unauthorized access.
  • Audit existing gateway route configurations for unexpected or malicious entries.

Immediate actions

Check inventory for Spring Cloud Gateway and identify versions < 3.0.7 or 3.1.0.

IT Operations 24h

Threat Hunt

Identify unauthorized access to /actuator/gateway/routes and /actuator/gateway/refresh endpoints.

T1190 high high confidence hunt now

Data: Web access logs

Mitigations

Upgrade to Spring Cloud Gateway 3.1.1+ or 3.0.7+.

immediate IT Operations

CVE-2022-22947

Detection coverage 1

Detect CVE-2022-22947 Exploitation Attempt - Malicious Route Creation

critical

Detects exploitation attempts against CVE-2022-22947 by identifying POST requests to the gateway routes endpoint containing SpEL expression characters.

sigma tactics: initial_access techniques: T1190 sources: webserver

Detection queries are available on the platform. Get full rules →