Vulnerability report

Active exploitation observed Confirmed confidence Not in CISA KEV

CVE-2021-31805

Apache Struts Remote Code Execution

Apache Software Foundation / Apache Struts · 2.0.0 to 2.5.29

Severity
CVSS 9.8 · Critical
Confidence
Confirmed
Exploit status
Observed in sensors
EPSS
85.4%
First observed
12 Jun 2026
Last observed
30 Jul 2026

Decision summary

What security teams need to know first

Direct answers before the deeper technical record.

What it is

CVE-2021-31805 is an unauthenticated vulnerability affecting Apache Software Foundation Apache Struts. 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...

Is it exploited?

Yes. KEV Intelligence sensors observed exploitation attempts with confirmed confidence.

Who is affected?

Apache Software Foundation / 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

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.

Vendor Product Affected Status
Apache Software Foundation Apache Struts 2.0.0 to 2.5.29 Affected
Published
12 Apr 2022
Exploitation Reported
12 Jun 2026
Attack vector
Remote
Complexity
Low
Privileges
None
User interaction
None

Tags

apache nuclei_scanner

CVE References

Exploitation evidence

Why KEV Intelligence marks this CVE as exploited

Third-party attestation and first-party sensor observation are shown separately so teams can judge the evidence chain.

Exploited in the wild

KEV Intelligence

Recorded 12 Jun 2026

Independent exploitation attestation added to the KEV Intelligence record.

Active exploitation observed

KEV Intelligence sensor

First observed 12 Jun 2026

First-party sensor telemetry confirms matching exploitation attempts.

Proof of concept available

GitHub

Recorded 15 Apr 2022

Public scanner or PoC coverage increases practical exploitability.

Known exploited vulnerability sources

Per-source evidence links for KEV attestations are available through the KEV Intelligence Pro API.

Learn about Pro API access
Source Added
KEV Intelligence First 2026-06-12 00:32 UTC

Operational indicators for this CVE are listed under Detection.

Sensor telemetry

First-party evidence of exploitation activity

Aggregate observations show the scale, recency, and distribution of activity without overstating sparse data.

2

Attempts observed

2

Unique attacker IPs

2

Attacker countries

JP · US

2

Sensors observed

Exploitation attempts over the last 70 days

Daily events observed by KEV Intelligence sensors

Updated 19 Aug 2026

0
1
0
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
9
5
1
0
20
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
11 Jun 25 Jun 9 Jul 23 Jul 19 Aug

First observed 12 Jun 2026 · Last observed 30 Jul 2026

Pro adds sensor region and window summaries. Enterprise adds raw IPs, paths, User-Agents, and payloads.

Request telemetry access

Detection

Operational artifacts and observed signals

Make the evidence actionable in scanner, SOC, and edge-control workflows.

Observed signals

Request targets
1
User-Agents
2

Raw values available in Pro and Enterprise.

Virtual patch status

KEV Intelligence virtual patch guidance is available for this CVE.

AWS WAF Cloudflare ModSecurity

Attacker IP Indicators

Attacker IP indicators observed · available in Pro and Enterprise.

Sensor-derived attacker IP indicators are available to Pro and Enterprise accounts under Detection and through the Pro API.

Learn about Pro API access

Scanner Artifacts

Scanner and exploit-framework references linked to this CVE.

Virtual Patch Detail

Compensating WAF rules for this CVE.

Available

Enterprise feature. Virtual patch rule content and deployable vendor exports (ModSecurity, Cloudflare, AWS WAF) are available to KEV Intelligence Enterprise users.

Risk and context

Severity, weaknesses, and research context

CVSS v3.1

9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS

85.4%

All CVSS Scores

CVSS v3.1 9.8 Critical

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CVSS v2.0 7.5 High

AV:N/AC:L/Au:N/C:P/I:P/A:P

Potential Proof of Concepts

These PoCs are unverified and could contain malware. Use at your own risk.

Wrin9/CVE-2021-31805

github · Created 2022-04-15 04:23:44 UTC · 35 stars · AI assessment 90%

S2-062 (CVE-2021-31805) / S2-061 / S2-059 RCE

Timeline

From disclosure to observed exploitation

  1. Virtual patch available

    Compensating WAF rule available to block exploitation

  2. Observed by KEV Intelligence sensors

    Evidence-backed exploitation signal

  3. Indicators of compromise added (21)

    Indicators of compromise recorded

  4. Nuclei template available

    Scanner coverage available

  5. Public PoC available

    Public proof-of-concept code published

  6. CVE published

    Vulnerability disclosed publicly

  7. CVE ID reserved

    Identifier reserved by the CNA

Pro API

Automate this intelligence

Confidence, exploit status, sensor telemetry, PoCs, scanner integrations, mentions, and tags are available programmatically for VM, SOC, and CTI workflows.

  • Evidence confidence and provenance
  • First-party sensor telemetry
  • PoC and scanner references
  • Affected versions and enrichment
  • Automation-ready JSON delivery

GET /api/v2/pro/kevs/CVE-2021-31805

Free JSON includes basic KEV fields
{
  "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": 2, "sensors": 2 }
}

Early warning alerts

Get alerts on high-impact exploitation

Receive curator-selected alerts when exploitation activity warrants attention. Each alert includes the evidence and context needed to decide what requires attention now.

Occasional high-impact alerts. Unsubscribe anytime. See our Privacy Policy.