Spring4Shell: data binding reaches the ClassLoader
A denylist meant to keep classLoader unbindable only fires on the exact reflection Class type, so a nested bind reaching a ClassLoader through another type slips past it and drives arbitrary code execution.
- Product
- Spring Framework (spring-beans / Spring MVC, Spring WebFlux)
- Vendor
- VMware (Spring)
- Affected
- 5.3.0 to 5.3.17 and 5.2.0 to 5.2.19 (and older, unsupported branches); exploitable on JDK 9+ deployed as a WAR on Apache Tomcat
- Fixed in
- 5.3.18 and 5.2.20
- Weakness
- CWE-94
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Published
- 1 Apr 2022
Classified as
References
Related CVEs
- CVE-2022-22947critical 10.02022
Spring Cloud Gateway SpEL code injection via Actuator route
An argument value from an Actuator-defined route filter is evaluated as a Spring Expression Language expression in an unrestricted context, so a crafted route runs arbitrary code on refresh.
- CVE-2022-42889critical 9.82022
Text4Shell: default script lookup in string interpolation
A string-interpolation helper enables every built-in lookup by default, including one that evaluates scripts, so untrusted input containing an interpolation reference runs code.
- CVE-2022-30190high 7.82022
Follina: ms-msdt URL-scheme code injection
A document-hosted script invokes the local MSDT diagnostic handler through the ms-msdt URL scheme, and a $() subexpression inside a diagnostic parameter is evaluated as a PowerShell command, giving macro-less code execution.
- CVE-2021-22204high 7.82021
ExifTool DjVu annotation eval injection (RCE)
A metadata parser expands escape sequences in a quoted annotation by passing the untrusted string through eval, so a crafted quoted value breaks out and runs arbitrary code.