CVE-2012-4386 Cross-Site Request Forgery in Apache Struts

Medium 6.8 Published Updated

Remote attackers can bypass CSRF protections in Apache Struts by manipulating token configuration, allowing unauthorized actions on behalf of users.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2012-4386?

CVE-2012-4386 is a medium-severity vulnerability in Apache Struts, published on 5 Sep 2012. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

The token check mechanism in Apache Struts 2.0.0 through 2.3.4 does not properly validate the token name configuration parameter, which allows remote attackers to perform cross-site request forgery (CSRF) attacks by setting the token name configuration parameter to a session attribute.

Weakness: CWE-352

Which versions are affected by CVE-2012-4386?

2 open source packages ship an affected version, including org.apache.struts:struts2-core. It affects 1 product.

PackageAffectedFixed in
org.apache.struts:struts2-core MavenFrom 2.0.02.3.4.1
org.apache.struts:struts2-core MavenFrom 2.0.02.3.4.1

Products include Apache Struts.

How do I fix CVE-2012-4386?

Upgrade org.apache.struts:struts2-core to 2.3.4.1 or later.

Is CVE-2012-4386 being exploited?

There is no known exploitation of CVE-2012-4386 in the wild and no public exploit code.

All Apache Struts vulnerabilities

Sources

Also known as GHSA-2rvh-q539-q33v.

Is CVE-2012-4386 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free