ID:7648 - Exploit for Code Injection in Apache Struts - CVE-2021-31805

 
Main Vulnerability Database Exploits ID:7648 - Exploit for Code Injection in Apache Struts - CVE-2021-31805

ID:7648 - Exploit for Code Injection in Apache Struts - CVE-2021-31805

Published: April 15, 2022


Vulnerability identifier: #VU62084
Vulnerability risk: High
CVE-ID: CVE-2021-31805
CWE-ID: CWE-94
Exploitation vector: Remote access
Vulnerable software:
Apache Struts

Link to public exploit:


Vulnerability description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to improper input validation caused by incomplete fix for #VU48815 (CVE-220-17530). Still some of the tag's attributes could perform a double evaluation if a developer applied forced OGNL evaluation by using the %{...} syntax. A remote attacker can send a specially crafted request and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Remediation

Install updates from vendor's website.