Skip to main content

CVE-2022-22947 — Vulnerability in spring-cloud-gateway — CVE Details

CRITICAL
Actively Exploited

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

Published March 4, 2022Updated February 16, 2024Source: OSV

What Should I Do?

Patch Immediately

This vulnerability is confirmed under active exploitation (CISA KEV). Patch within 24-48 hours if possible.

Does your project use an affected org.springframework.cloud:spring-cloud-gateway version?

Paste your pom.xml to check it for CVE-2022-22947 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my pom.xml

Summary

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 resulting in arbitrary remote execution on the remote host.

Advisory Timeline

  • First published March 4, 2022 (1728 days ago).
  • Last revised February 16, 2024 — 714 days after initial publication.
  • Added to CISA's Known Exploited Vulnerabilities catalog 73 days after publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.springframework.cloud:spring-cloud-gateway to 3.1.1 or later
<!-- Update pom.xml dependency version to 3.1.1 for org.springframework.cloud:spring-cloud-gateway -->
Maven
Update org.springframework.cloud:spring-cloud-gateway to 3.0.7 or later
<!-- Update pom.xml dependency version to 3.0.7 for org.springframework.cloud:spring-cloud-gateway -->

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 1 ecosystem: Maven (1).

PackageFixed In
org.springframework.cloud:spring-cloud-gateway Maven · Affected: 3.1.03.1.1
org.springframework.cloud:spring-cloud-gateway Maven · Affected: 1.0.0.RELEASE, 1.0.1.RELEASE, 1.0.2.RELEASE, 1.0.3.RELEASE (+29 more)3.0.7

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 10.0 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

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

Frequently Asked Questions

What is CVE-2022-22947?
Spring Cloud Gateway vulnerable to Code Injection when Gateway Actuator endpoint enabled, exposed, unsecured. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 10.0/10).
How do I check if my project is affected by CVE-2022-22947?
CVE-2022-22947 affects org.springframework.cloud:spring-cloud-gateway. It has a 95.6% probability of exploitation within 30 days (EPSS score). This vulnerability is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, meaning it is being actively exploited in the wild. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-22947 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
10.0

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
95.57%
EPSS percentile: 99.9

This places it in the top 5% of EPSS-scored vulnerabilities — 99.9% of tracked vulnerabilities score at or below it, so it is far more likely to be exploited than nearly all other tracked vulnerabilities.

Known Exploited Vulnerability

This vulnerability is in CISA's Known Exploited Vulnerabilities (KEV) catalog, indicating active exploitation in the wild.

Added to KEV catalog: May 16, 2022

Remediation deadline: June 6, 2022

Also Known As

GHSA-3gx9-37ww-9qw6

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my pom.xml