Threat Feed

CVE-2022-22965: VMware Spring Framework · Remote code execution

Exploitation: In the wild · CVSS 9.8 Critical · Unauthenticated · Published 2022-04-01

Description

A Spring MVC or Spring WebFlux application running on JDK 9+ may be vulnerable to remote code execution (RCE) via data binding. The specific exploit requires the application to run on Tomcat as a WAR deployment. If the application is deployed as a Spring Boot executable jar, i.e. the default, it is not vulnerable to the exploit. However, the nature of the vulnerability is more general, and there may be other ways to exploit it.

Enclave's analysis

Spring4Shell is a remote code execution vulnerability in Spring Framework's data binding mechanism affecting Spring MVC and Spring WebFlux applications running on JDK 9+. The publicly known exploit chain requires the application to be deployed as a traditional WAR file on Apache Tomcat, where an attacker can send crafted HTTP request parameters that traverse the class loader chain (class.module.classLoader.resources.context.parent.pipeline.first.*) to manipulate Tomcat's AccessLogValve configuration, writing a JSP webshell to disk. The attack is unauthenticated and automatable. Spring Boot executable jar deployments (the default) are NOT vulnerable to the known exploit path, though the advisory warns the underlying flaw may have other exploitation vectors. Fixed in Spring Framework 5.3.18 and 5.2.20, with additional Tomcat-side mitigations in Tomcat 10.0.20, 9.0.62, and 8.5.78.

Fix

Upgrade Cisco CX Cloud Agent to 2.1.0. No fixed version is listed for Spring Framework, Multiple Oracle Communications Cloud Native Core products; follow the vendor advisory.

Vendor advisory

Affected versions

ProductVulnerableFixed in
Spring FrameworkSpring Framework versions 5.3.X prior to 5.3.18+, 5.2.x prior to 5.2.20+ and all old and unsupported versionsNot listed
Cisco CX Cloud Agent< 2.1.02.1.0
Multiple Oracle Communications Cloud Native Core productsVarious versions (1.x and 22.1.0 across multiple sub-products)Not listed

Seen in 4 sources