Skip to content
RCE Write-up Advanced

Spring Core on JDK9 is vulnerable to remote code execution

Spring Core on JDK9+ is vulnerable to remote code execution due to a bypass for CVE-2010-1622. An unauthenticated attacker can send a crafted HTTP request to execute arbitrary code on the target system.

praetorian.com

Published on praetorian.com

https://spring.io/blog/2022/03/31/spring-framework-rce-early-announcement

Justin Copeland, on praetorian.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a bypass of the fix for CVE-2010-1622, allowing an attacker to manipulate class loader properties via data binding to write a malicious file.

Impact

An unauthenticated attacker could execute arbitrary code on the target system, but exploitation depends on the servlet container and may require additional research for different configurations.

What the attacker needed

Spring Core on JDK9+; Endpoint with DataBinder enabled; Specific servlet container (e.g., Apache Tomcat)

The fix

A patch was officially released on March 31, 2022.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Spring is a popular framework for building Java web applications. A flaw in how it handles certain HTTP requests allows an attacker to run their own code on the server without logging in. This is called remote code execution, and it is one of the most serious types of security bugs.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.