Spring vulnerabilities
3 real-world CVEs in Spring. Each one is a short hands-on exercise in Hexret: find the vulnerable line, follow the exploit and learn the fix.
- CVE-2022-22965critical 9.82022
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.
- CVE-2022-22963critical 9.82022
Spring Cloud Function header-supplied SpEL injection
The function router evaluated a routing expression taken from an HTTP-derived message header with Spring's powerful standard expression context, allowing untrusted input to invoke Java types and methods instead of merely selecting a function.
- 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.