CVE-2012-0818: XML external entity file disclosure in RESTEasy
- Vendor
- Red Hat
CVE-2012-0818 is an XML external entity injection vulnerability in RESTEasy before 2.3.1. Processing an attacker-controlled external entity reference in a DOM document can cause the application server to resolve the entity and disclose local file contents. The related RESTEasy flaws CVE-2011-5245 and CVE-2012-0818 collectively affect DOM Document and JAXB input. The original fix was subsequently found to be incomplete, with external parameter entity handling addressed separately by CVE-2014-3490.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Remote attackers can read files accessible to the operating-system account running the application server. Disclosure is bounded by that account's file permissions and can expose sensitive application or server data.
Mitigation
If you can’t patch tonight, do this now.
Prevent XML external entity processing and limit exposure of vulnerable RESTEasy endpoints until patched. Do not rely solely on disabling entity-reference expansion: the incomplete fix still permitted external parameter entities in a specific configuration.
Remediation
Patch, then assume compromise.
Upgrade RESTEasy versions earlier than 2.3.1 to a patched release. Because the original fix was incomplete, also apply fixes for CVE-2014-3490 rather than relying solely on the original update. Later remediation specifies RESTEasy 2.3.8.SP2 or later in the 2.3.x branch, or 3.0.9.Final or later in the 3.x branch. For affected JBoss BPM Suite and JBoss BRMS 6.0.0 deployments, version 6.0.1 includes the original CVE-2012-0818 fix; version 6.0.3 includes the follow-up CVE-2014-3490 fix.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2012-0818 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2012-0818 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2012-0818?
- As of Oct 16, 2026, Mallory has found no public exploit for CVE-2012-0818.
- Is there a patch for CVE-2012-0818?
- Upgrade RESTEasy versions earlier than 2.3.1 to a patched release. Because the original fix was incomplete, also apply fixes for CVE-2014-3490 rather than relying solely on the original update.
- What products are affected by CVE-2012-0818?
- Red Hat Resteasy.
- How severe is CVE-2012-0818?
- CVE-2012-0818 has a CVSS v2 score of 5.0 (Medium) and an EPSS score of 3.2% (89th percentile) as of Oct 16, 2026.
Recent activity
8 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.