RichFaces Expression Language Injection is a Java web application vulnerability where attacker-controlled input is evaluated as Expression Language code. It occurs when RichFaces components or related server-side handling pass untrusted values into EL evaluation, allowing expression execution, data access, or command-like behaviour within the application context.
How RichFaces Expression Language Injection Works
RichFaces Expression Language Injection happens when a web application treats attacker-supplied input as Java Expression Language rather than as plain data. The danger is not the label alone, but the evaluation step: once untrusted text reaches EL processing, the application may resolve objects, call methods, or read application state in ways the developer never intended.
In practice, this vulnerability sits in the server-side rendering and component handling path. RichFaces components can make EL evaluation feel routine and safe, which is why the weakness often appears when user-controlled parameters, form fields, or request values are passed through templating logic without strict separation between data and executable expression syntax.
Why It Becomes Dangerous in a Java Web Application
The security problem is that Expression Language is designed to be expressive. That is useful for legitimate view logic, but it becomes hazardous when an attacker can influence the expression itself or a value that later gets reinterpreted as part of the expression. At that point, the application may disclose sensitive data, alter business logic, or reach execution paths that were meant only for trusted server-side code.
Because RichFaces is used inside a broader Java web stack, the impact often depends on what objects and helpers are exposed to the expression context. Even if the payload does not yield full remote code execution, EL injection can still expose credentials, session data, internal configuration, or privileged application functions. The core failure is trust boundary collapse, where data crosses into code semantics.
Exposure, Validation, and Remediation
Exposure review starts with identifying every place RichFaces or adjacent server-side code consumes request-derived values and routes them into expression evaluation. Teams should check component usage, templating paths, and any custom helpers that build EL strings dynamically. For the broader web application risk pattern, the OWASP Top 10 remains a useful baseline for understanding how injection flaws arise and why strict input handling matters.
Remediation focuses on removing dynamic expression construction, keeping user input as data, and limiting what the expression context can access. Where a full fix cannot be applied immediately, compensating controls include tighter input validation, reduced server-side object exposure, stronger request filtering, and review of any component or framework upgrade path that changes EL handling behaviour.
Detection and Post-Exploitation Review
Detection is usually a combination of application logging, WAF or reverse-proxy telemetry, and review of unusual expression syntax in requests and server errors. Exploitation attempts may produce parsing failures, unexpected object references, or error patterns that point to evaluation of crafted payloads rather than ordinary application use. The most reliable investigations correlate the suspicious request with server-side behaviour, not just the visible client response.
After suspected exploitation, teams should review whether the application accessed sensitive data, altered records, or exposed internal objects through the expression context. If the application uses privileged integration accounts, secrets, or cached sessions in server-side scope, those should be considered potentially exposed and rotated or reissued where appropriate.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
MITRE ATT&CK addresses the attack and risk surface, while OWASP ASVS and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP ASVS | V2 — Validation and Business Logic | EL injection depends on unsafe handling of attacker-controlled input. |
| V15 — Secure Coding and Architecture | The flaw is created by mixing data flow with executable server-side expressions. | |
| V16 — Security Logging and Error Handling | Suspicious EL payloads often surface through parsing errors and anomalous server responses. | |
| Recommendation — Treat all user input as data and enforce validation before any server-side expression handling. Remove dynamic expression construction from application architecture and keep code paths separate from data. Log expression parsing failures and review them for injection probes and post-exploitation indicators. | ||
| CIS Controls v8 | CIS-16 — Application Software Security | This is an application-layer injection weakness requiring secure coding and review. |
| Recommendation — Harden application code paths that evaluate expressions and verify them in security testing. | ||
| MITRE ATT&CK | T1190 — Exploit Public-Facing Application | Attackers abuse a public-facing web application input path to trigger server-side execution. |
| Recommendation — Map exposed RichFaces endpoints to public-facing application attack paths and hunt for exploitation attempts. | ||
Related resources from NHI Mgmt Group
- How do you patch or mitigate CVE-2018-14667 (Red Hat JBoss RichFaces Framework Expression Language Injection)?
- Is CVE-2018-14667 (Red Hat JBoss RichFaces Framework Expression Language Injection) being exploited in the wild?
- CVE-2018-14667 (Red Hat JBoss RichFaces Framework Expression Language Injection)
- What causes expression language injection?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on November 3, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org