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).

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

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