CVE-2022-22947: Spring Cloud Gateway vulnerable to Code Injection when Gateway Actuator endpoint enabled, exposed, unsecured

CVE-2022-22947 · Severity: critical · CVSS 3.1 · Exploited in the wild · Published 2022-03-04

Spring Cloud Gateway applications are vulnerable to a code injection attack when the Gateway Actuator endpoint is enabled, exposed, and unsecured. A remote attacker can send a maliciously crafted request to achieve arbitrary remote code execution on the host.

Technologies: org.springframework.cloud:spring-cloud-gateway (Maven), VMware Spring Cloud Gateway. Vendors: Maven, VMware.

Quick answers

Is CVE-2022-22947 exploited in the wild?
Yes. CVE-2022-22947 is known to be exploited in the wild, first recorded on 16 May 2022. Treat it as urgent.
How severe is CVE-2022-22947?
Critical severity, with a CVSS score of 3.1, published 4 March 2022.
Which products and versions are affected?
org.springframework.cloud:spring-cloud-gateway (Maven) ECOSYSTEM:introduced=0,fixed=3.0.7.
Is there a fix for CVE-2022-22947?
Yes. org.springframework.cloud:spring-cloud-gateway (Maven): upgrade to 3.0.7 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2022-22947 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2022-22947?
Check whether you run org.springframework.cloud:spring-cloud-gateway (Maven) or VMware Spring Cloud Gateway at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • org.springframework.cloud:spring-cloud-gateway (Maven): upgrade to 3.0.7 or later
    # set org.springframework.cloud:spring-cloud-gateway to 3.0.7 in your pom.xml or build.gradle

Affected products

  • VMware Spring Cloud Gateway prior to 3.1.1+ and 3.0.7+
  • Oracle Commerce Guided Search 11.3.2
  • Oracle Communications Cloud Native Core Binding Support Function 1.11.0, 22.1.3

Identifiers

  • CVE-2022-22947
  • GHSA-3gx9-37ww-9qw6

Timeline

  • 2022-05-16: disclosed
  • 2022-05-16: kev added: Added to CISA Known Exploited Vulnerabilities Catalog
  • 2022-03-01: other: Exploit code published on Packet Storm

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.