VYPR
Unrated severityNVD Advisory· Published Jun 17, 2012· Updated Apr 29, 2026

CVE-2012-2672

CVE-2012-2672

Description

Oracle Mojarra 2.1.7 does not properly "clean up" the FacesContext reference during startup, which allows local users to obtain context information an access resources from another WAR file by calling the FacesContext.getCurrentInstance function.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Oracle Mojarra 2.1.7 fails to clean up FacesContext reference during startup, allowing a deployed WAR to access another WAR's resources via FacesContext.getCurrentInstance().

Vulnerability

Oracle Mojarra 2.1.7 does not properly clean up the FacesContext reference held in a ThreadLocal during application startup. When a JSF WAR calls FacesContext.getCurrentInstance() during its startup, the context is not cleared, leaving a stale reference that can be accessed by another WAR deployed in the same application server [4]. This affects Mojarra versions prior to the fix (e.g., 2.1.7) and JBoss Enterprise Application Platform versions that bundle it.

Exploitation

An attacker must be able to deploy a malicious WAR or have a WAR that can call FacesContext.getCurrentInstance() during the startup phase. The attacker's WAR can then read the leftover FacesContext from another WAR that previously called the same method during its own startup. No network access is required; the attack is local to the application server's JVM [4].

Impact

Successful exploitation allows the attacker's WAR to obtain the FacesContext of another WAR, potentially gaining access to that WAR's resources, including session data, request parameters, and other sensitive information. This can lead to information disclosure across application boundaries within the same server [4].

Mitigation

Red Hat released updates for JBoss Enterprise Application Platform that include the fix: RHSA-2012-1591 (JBoss EAP 6.4 for RHEL 5) [1] and RHSA-2012-1592 (JBoss EAP from RHUI 6) [2]. Upstream, the issue was fixed in Mojarra via bug JAVASERVERFACES-2436. Users should upgrade to the patched version of Mojarra or apply the relevant JBoss EAP update. No workaround is documented.

AI Insight generated on May 23, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

2
  • cpe:2.3:a:oracle:mojarra:2.1.7:*:*:*:*:*:*:*+ 1 more
    • cpe:2.3:a:oracle:mojarra:2.1.7:*:*:*:*:*:*:*
    • (no CPE)range: =2.1.7

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

10

News mentions

0

No linked articles in our index yet.