Skip to main content

CVE-2016-3087 — Vulnerability in struts2-core — CVE Details

CRITICAL

Apache Struts vulnerable to arbitrary remote code execution due to improper input validation

Published May 14, 2022Updated February 22, 2024Source: OSV

What Should I Do?

Fix in Your Next Sprint

This vulnerability has a 80.97% chance of being exploited within 30 days.

Does your project use an affected org.apache.struts:struts2-core version?

Paste your pom.xml to check it for CVE-2016-3087 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my pom.xml

Summary

Apache Struts 2.3.19 to 2.3.20.2, 2.3.21 to 2.3.24.1, and 2.3.25 to 2.3.28, when Dynamic Method Invocation is enabled, allow remote attackers to execute arbitrary code via vectors related to an ! (exclamation mark) operator to the REST Plugin.

Advisory Timeline

  • First published May 14, 2022 (1657 days ago).
  • Last revised February 22, 2024 — 649 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.apache.struts:struts2-core to 2.3.20.3 or later
<!-- Update pom.xml dependency version to 2.3.20.3 for org.apache.struts:struts2-core -->
Maven
Update org.apache.struts:struts2-core to 2.3.28.1 or later
<!-- Update pom.xml dependency version to 2.3.28.1 for org.apache.struts:struts2-core -->
Maven
Update org.apache.struts:struts2-core to 2.3.24.3 or later
<!-- Update pom.xml dependency version to 2.3.24.3 for org.apache.struts:struts2-core -->

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (3)

Affects 1 ecosystem: Maven (1).

PackageFixed In
org.apache.struts:struts2-core Maven · Affected: 2.3.20, 2.3.20.12.3.20.3
org.apache.struts:struts2-core Maven · Affected: 2.3.282.3.28.1
org.apache.struts:struts2-core Maven · Affected: 2.3.24, 2.3.24.12.3.24.3

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-20
    Improper Input ValidationMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

Frequently Asked Questions

What is CVE-2016-3087?
Apache Struts vulnerable to arbitrary remote code execution due to improper input validation. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
How do I check if my project is affected by CVE-2016-3087?
CVE-2016-3087 affects org.apache.struts:struts2-core. It has a 81.0% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2016-3087 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
80.97%
EPSS percentile: 99.7

This places it in the top 5% of EPSS-scored vulnerabilities — 99.7% of tracked vulnerabilities score at or below it, so it is far more likely to be exploited than nearly all other tracked vulnerabilities.

Also Known As

GHSA-mmj6-cjj4-hpr5

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my pom.xml