CVE-2007-4556 OpenSymphony XWork vulnerable to improper input validation
Remote attackers can execute arbitrary code or cause denial of service via OGNL injection in XWork when altSyntax is enabled.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2007-4556?
CVE-2007-4556 is a medium-severity code injection vulnerability in n/a, published on 28 Aug 2007. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Struts support in OpenSymphony XWork before 1.2.3, and 2.x before 2.0.4, as used in WebWork and Apache Struts, recursively evaluates all input as an Object-Graph Navigation Language (OGNL) expression when altSyntax is enabled, which allows remote attackers to cause a denial of service (infinite loop) or execute arbitrary code via form input beginning with a "%{" sequence and ending with a "}" character.
Which versions are affected by CVE-2007-4556?
4 open source packages ship an affected version, including opensymphony:xwork. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
opensymphony:xwork Maven | All versions | 1.2.3 |
opensymphony:xwork Maven | All versions | 1.2.3 |
opensymphony:xwork Maven | From 2.0.0 | 2.0.4 |
opensymphony:xwork Maven | From 2.0.0 | 2.0.4 |
Products include Opensymphony Xwork.
How do I fix CVE-2007-4556?
Upgrade opensymphony:xwork to a fixed version for your release line: 1.2.3 or 2.0.4.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2007-4556 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2007-4556 exists.
Public exploit code: 1 Nuclei template.
Sources
Also known as GHSA-h7mf-qrm9-2848.