What it is
CVE-2021-31805 is an unauthenticated vulnerability affecting Apache Struts. The fix issued for CVE-2020-17530 was incomplete.
Vulnerability Intelligence
Apache Struts Remote Code Execution
Apache Struts · 2.0.0 to 2.5.29
Exploitation attempts observed by Previdian sensors. They do not show that the target was vulnerable or that the attempt succeeded.
36
Attempts observed
24
Unique attacker IPs
14
Attacker countries
BD · BG · CH · FI · FR · GB · HK · ID · JP · MD · NL · UA · US · YE
25
Sensors observed
CVE-2021-31805 exploitation attempts over the last 89 days
Daily events observed by Previdian sensors
Updated 23 Nov 2026
Decision summary
Direct answers before the deeper technical record.
What it is
CVE-2021-31805 is an unauthenticated vulnerability affecting Apache Struts. The fix issued for CVE-2020-17530 was incomplete.
Have exploitation attempts been observed?
Yes. Previdian sensors have observed 36 exploitation attempts, 24 unique attacker IPs, and 14 countries targeting CVE-2021-31805. First observed Jun 12, 2026; last observed Nov 19, 2026. Confidence is confirmed.
Who is affected?
Apache Struts 2.0.0 to 2.5.29.
What should we do?
Patch immediately, validate internet-facing exposure, and monitor for matching requests.
Overview
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.
Exploitation evidence
Third-party attestation and first-party sensor observation are shown separately so teams can judge the evidence chain.
Previdian
Previdian sensors observed exploitation attempts targeting this vulnerability.
Previdian sensor
Previdian sensors observed exploitation attempts targeting this vulnerability.
GitHub
Public scanner or PoC coverage increases practical exploitability.
Per-source evidence links for KEV attestations are available through the Previdian API.
Request a Demo| Source | Added |
|---|---|
| Previdian Sensors First | 2026-06-12 00:32 UTC |
Operational indicators for this CVE are listed under Detection.
Sensor telemetry
Previdian sensor observations are exploitation attempts targeting this vulnerability. They do not show that the target was vulnerable or that the attempt succeeded. The cards and chart show volume, unique attackers, and daily activity.
First observed 12 Jun 2026 · Last observed 19 Nov 2026
Enterprise includes sensor region and window summaries, plus raw IPs, paths, User-Agents, and payloads.
Detection
Make the evidence actionable in scanner, SOC, and edge-control workflows.
Request targets, User-Agents, and callback host details are available on Enterprise.
Nuclei template detected 25 Apr 2025.
View Nuclei template (opens in new tab)Previdian virtual patch guidance is available for this CVE.
Attacker IP indicators observed. Available on Enterprise.
Sensor-derived attacker IP indicators are available on Enterprise under Detection and through the API.
Request a DemoScanner and exploit-framework references linked to this CVE.
| Scanner | Reference | Detected |
|---|---|---|
| Nuclei | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-31805.yaml | 25 Apr 2025 |
Compensating WAF rules for this CVE.
Enterprise feature. Virtual patch rule content and deployable vendor exports (ModSecurity, Cloudflare, AWS WAF) are available to Previdian Enterprise users.
Risk and context
CVSS v3.1
Potential damage if exploited. Separate from whether attackers are using it.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
85.4%
Estimated chance of exploitation in the next 30 days. Previdian's warning comes from evidence, not this score.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
AV:N/AC:L/Au:N/C:P/I:P/A:P
These PoCs are unverified and could contain malware. Use at your own risk.
github · Created 2022-04-15 04:23:44 UTC · 35 stars · AI assessment 90%
S2-062 (CVE-2021-31805) / S2-061 / S2-059 RCE
nuclei · Created Unknown
API
Confidence, exploit status, sensor telemetry, PoCs, scanner integrations, mentions, and tags are available programmatically for VM, SOC, and CTI workflows.
GET /api/v2/enterprise/kevs/CVE-2021-31805
Sample API response{
"cve_id": "CVE-2021-31805",
"confidence": "Confirmed",
"cvss_score": 9.8,
"cvss_estimated": false,
"epss_score": 0.85433,
"exploit_status": {
"exploited_in_the_wild": true,
"active_exploitation_observed": true
},
"sensor_telemetry": { "attempts": 36, "sensors": 25 }
}
Timeline
14:21 UTC
Compensating WAF rule available to block exploitation
00:32 UTC
Indicators of compromise recorded
00:32 UTC
Previdian sensors observed exploitation attempts targeting this vulnerability.
00:00 UTC
Scanner coverage available
04:23 UTC
Public proof-of-concept code published
15:25 UTC
Vulnerability disclosed publicly
00:00 UTC
Identifier reserved by the CNA