Local Context Information Exposure in Mojarra Package - CVE-2012-2672

mojarra Updated 02 Oct 2025

Summary

17/06/2012
N/A
Yes i
Unrated
Not published

CVE-2012-2672: 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.ge... Affects mojarra versions < 2.2.8-1. Fixed in 2.2.8-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Mojarra is the reference implementation of the JavaServer Faces (JSF) specification, which simplifies the development of user interfaces for Java web applications. It provides a set of reusable UI components and manages the state of these components across multiple requests. The vulnerability in question arises from improper handling of the FacesContext reference during the startup process, potentially exposing sensitive context information to local users.

Vulnerability Detail

CVE-2012-2672 is a vulnerability in Oracle Mojarra 2.1.7 that allows local users to access context information and resources from another WAR file by invoking the FacesContext.getCurrentInstance function. This issue stems from the failure to properly clean up the FacesContext reference during the startup phase, which can lead to unauthorized access to sensitive data. The ramifications of this vulnerability could include data leakage and unauthorized access to application resources, posing a significant security risk.

How To Fix

Minimum fixed version

2.2.8-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade mojarra

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If an immediate upgrade is not feasible, consider isolating the application by restricting access to the WAR files and ensuring that sensitive resources are not exposed to local users. Implementing strict access controls and monitoring can help mitigate the risk until the package is updated.

Conclusion

CVE-2012-2672 presents a significant security risk for applications using the Mojarra package version 2.1.7. It is crucial to upgrade to a fixed version to protect against unauthorized access to sensitive context information. Additionally, utilizing tools like Vulert can help monitor and alert for open-source vulnerabilities in your software.

See every vulnerability recorded for mojarra →

Share this vulnerability

FAQ

CVE-2012-2672 is a vulnerability in the Mojarra package that allows local users to access sensitive context information from another WAR file.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The vulnerability could lead to unauthorized access to sensitive data and resources, resulting in data leakage and security breaches.

Mojarra version 2.1.7 is specifically affected by this vulnerability. Upgrading to version 2.2.8-1 or later is recommended.

Yes, you can mitigate the risk by restricting access to WAR files and implementing strict access controls until an upgrade is performed.

Related vulnerabilities

Recent vulnerabilities recorded for mojarra.

How To Fix

Minimum fixed version

2.2.8-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade mojarra

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback