S4E just found a low-severity finding from [ai] web application external link detection scanner
PlatformPlansPartners
Resources
ToolsBlogDocs
Sign Up →
critical·Product Based Web Vulnerabilities·Updated Jan 3, 2024

CVE-2021-31805 Scanner

CVE-2021-31805 scanner - Remote Code Execution (RCE) vulnerability in Apache Struts

Est. Time~10 seconds
Scan TypeSingle Scan
Targetsdomain, ipv4, subdomain
CostFree
2.5k
Times Used
continuous scan runs
4.1k
Continuously Checked
assets under CS
0
Vulnerabilities Found
confirmed findings
References
CVECVE-2021-31805
9.8
CVSS

The fix issued for CVE-2020-17530 was incomplete. So from Apache Struts 2.0.0 to 2.5.29, still some of the tag’s attributes could perform a double evaluation if a developer applied forced OGNL evaluation by using the %{...} syntax. Using forced OGNL evaluation on untrusted user input can lead to a Remote Code Execution and security degradation.

Attack Vector
-
Privileges Req.
-
User Interaction
-
Affected
Apache Strutsby Apache Software Foundation
2.0.0 to 2.5.29
Updated Aug 19, 2026View on NVD →
Detail

Apache Struts is an open-source web application framework that is widely used for developing Java web applications. Its primary purpose is to simplify the process of designing scalable, maintainable, and secure web applications. The framework is easy to use and fast, making it a popular choice for developers worldwide. 

CVE-2021-31805 is a vulnerability that has been detected in the Apache Struts framework. This vulnerability affects Apache Struts 2.0.0 to 2.5.29. It is an incomplete patch for the CVE-2020-17530 vulnerability which means some of the tag's attributes can perform a double evaluation if forced OGNL evaluation is applied by using the %{...} syntax. 

This vulnerability can lead to a remote code execution attack, which means an attacker can execute arbitrary code on the affected system and take complete control over it. The attacker can steal sensitive information, make changes to the system's configuration, and launch further attacks on the company's network or users. The consequences of such attacks can be catastrophic, leading to data breaches, loss of reputation, and financial damages. 

s4e.io is an advanced platform that provides detailed and up-to-date information about latest vulnerabilities and their impact on the digital assets. This platform's pro features make it easier and quicker for developers and company owners to identify and address potential security risks. Its comprehensive database of vulnerabilities and remedies makes it an essential tool for ensuring a safe and secure digital environment. By utilizing the pro features of s4e.io, you can mitigate vulnerabilities before they can cause your system significant harm.

 

REFERENCES

Solution Advice

To protect against this vulnerability, here are some precautions that can be taken: 

  • Install the updated version of Apache Struts 2.5.30.
  • Apply patches released by Apache Struts immediately,
  • Avoid using forced OGNL evaluation,
  • Sanitize user inputs and filter the character set,
  • Use a web application firewall (WAF).

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

11,000+ scanners. Free to start. No credit card required.