CVE-2011-1772 Cross-site Scripting in Apache Struts

Low 2.6 Published Updated

Remote attackers can inject arbitrary web script or HTML via specific action and submit element attributes in Apache Struts 2.x and OpenSymphony WebWork.

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-2011-1772?

CVE-2011-1772 is a low-severity cross-site scripting vulnerability in Apache Struts, published on 13 May 2011. 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

Multiple cross-site scripting (XSS) vulnerabilities in XWork in Apache Struts 2.x before 2.2.3, and OpenSymphony XWork in OpenSymphony WebWork, allow remote attackers to inject arbitrary web script or HTML via vectors involving (1) an action name, (2) the action attribute of an s:submit element, or (3) the method attribute of an s:submit element.

Weakness: CWE-79

Which versions are affected by CVE-2011-1772?

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

PackageAffectedFixed in
org.apache.struts:struts2-core MavenAll versions2.2.3
org.apache.struts:struts2-core MavenAll versions2.2.3

Products include Apache Struts, Opensymphony Webwork, Opensymphony Xwork.

How do I fix CVE-2011-1772?

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

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2011-1772 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2011-1772 exists.

Public exploit code: 1 Exploit-DB entry.

All Apache Struts vulnerabilities

Sources

Also known as GHSA-56f8-g68r-j699.

Is CVE-2011-1772 in your software?

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

Check your SBOMs for free