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.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- OpenSymphony XWork/Apache Struts2 - Remote Code Execution http/cves/2007/CVE-2007-4556.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | opensymphony:xwork | < 1.2.3 | 1.2.3 | GHSA-h7mf-qrm9-2848 |
| Maven | opensymphony:xwork | >= 2.0.0, < 2.0.4 | 2.0.4 | GHSA-h7mf-qrm9-2848 |
References
- 25524 vdb-entry
- http://jira.opensymphony.com/browse/XW-544
- http://issues.apache.org/struts/browse/WW-2030
- ADV-2007-3041 vdb-entry
- http://forums.opensymphony.com/ann.jspa?annID=54
- ADV-2007-3042 vdb-entry
- 26693 third-party-advisory
- 26681 third-party-advisory
- http://wiki.opensymphony.com/display/WW/1.2.3+Press+Release
- http://jira.opensymphony.com/secure/ReleaseNote.jspa?projectId=10050&styleName=Html&version=21706
- 37072 vdb-entry
- http://struts.apache.org/2.x/docs/s2-001.html
- http://jira.opensymphony.com/secure/ReleaseNote.jspa?projectId=10050&styleName=Html&version=21701
- 26694 third-party-advisory