CVE-2022-22947
Java vulnerability analysis and mitigation

Overview

CVE-2022-22947 is a critical code injection vulnerability affecting Spring Cloud Gateway versions prior to 3.1.1+ and 3.0.7+. The vulnerability was discovered and reported by Wyatt Dahlenburg and publicly disclosed on March 1, 2022. The vulnerability affects applications using Spring Cloud Gateway when the Gateway Actuator endpoint is enabled, exposed, and unsecured (Spring Security, CVE Mitre).

Technical details

The vulnerability stems from Spring Expression Language (SpEL) expressions being passed to the StandardEvaluationContext context, which allows any valid SpEL expression passed to the context to be executed. The vulnerability has received a CVSS v3.0 base score of 10.0 (Critical), indicating the highest severity level. The attack vector is network-based, with low attack complexity, requiring no privileges or user interaction (AttackerKB).

Impact

A successful exploitation of this vulnerability allows a remote attacker to make maliciously crafted requests that could lead to arbitrary remote code execution on the affected host. The vulnerability has critical impact ratings for confidentiality, integrity, and availability (Spring Security).

Exploitability

The vulnerability is actively being exploited in the wild. The vulnerable condition requires the Gateway Actuator endpoint to be enabled, exposed, and unsecured, which is not a default configuration. Telemetry from security researchers reveals ongoing exploit attempts and scanning activities targeting vulnerable applications (AttackerKB).

Mitigation and workarounds

Users of affected versions should upgrade to Spring Cloud Gateway version 3.1.1+ (for 3.1.x users) or version 3.0.7+ (for 3.0.x users). If the Gateway actuator endpoint is not needed, it should be disabled via management.endpoint.gateway.enabled: false. If the actuator is required, it should be secured using Spring Security. The vulnerability has been fixed in Spring Cloud Gateway versions 3.1.1+ and 3.0.7+ (Spring Security).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-76904CRITICAL9.8
  • Java logoJava
  • org.geotools.jdbc:gt-jdbc-postgis
NoYesAug 21, 2026
GHSA-mqjf-5f49-2fjhCRITICAL9.8
  • Java logoJava
  • org.geotools:gt-jdbc-postgis
NoYesAug 21, 2026
CVE-2026-61827HIGH8.7
  • Java logoJava
  • io.netty.incubator:netty-incubator-codec-bhttp
NoYesAug 20, 2026
CVE-2026-63202HIGH7.5
  • Java logoJava
  • io.netty.incubator:netty-incubator-codec-bhttp
NoYesAug 20, 2026
CVE-2026-63124HIGH7.5
  • Java logoJava
  • io.netty.incubator:netty-incubator-codec-bhttp
NoYesAug 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management