CVE-2021-31805CWE-917

Forced OGNL evaluation, when evaluated on raw not validated user input in tag attributes, may lead to RCE.

published April 12, 2022

Patch now

High probability of exploitation

NVD has not assigned a CVSS score to this record. It sits in the 99.7th percentile for exploit probability.

CVSS
—
EPSS
85%
Percentile
99.7
In the wild
Unconfirmed
What it is

⚠️ A fix that didn’t quite fix it! Some Apache Struts versions still allow sneaky double evaluations, opening the door to potential Remote Code Execution. 🔥 Think of it like a restaurant where the chef can still take shortcuts, ignoring food safety laws — your meal might look fine, but there's a risk of serious contamination! If an attacker manages to exploit this flaw, they could execute arbitrary code on the server, leading to catastrophic breaches of data and control over the application. It’s like an intruder slipping through a back door you thought was locked!

Put simply

Think of it like a restaurant where the chef can still take shortcuts, ignoring food safety laws — your meal might look fine, but there's a risk of serious contamination! This vulnerability arises from incomplete fixes for a previous CVE, allowing forced OGNL evaluation on untrusted user inputs in Apache Struts versions 2.0.0 to 2.5.29, resulting in potential Remote Code Execution.

What to do

If an attacker manages to exploit this flaw, they could execute arbitrary code on the server, leading to catastrophic breaches of data and control over the application. It’s like an intruder slipping through a back door you thought was locked! Developers should immediately audit their Struts applications, ensuring they are updated beyond version 2.5.29. Additionally, avoid forced OGNL evaluations on user inputs and thoroughly validate all external input. 🛡️ You've got this! By taking these precautions, you can strengthen your defenses and keep your applications safe. 💪✨

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.85433 · 99.7th percentile
Weakness
CWE-917 · Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')
Published
2022-04-12T15:25Z
EPSS history
Timeline
  • 12 APR 15:25Z
    Forced OGNL evaluation, when evaluated on raw not validated user input in tag attributes, may lead to RCE.
    cvelistv5