# CVE-2018-14667: Red Hat JBoss RichFaces Framework Expression Language Injection

> Remote unauthenticated attackers can execute arbitrary code via Expression Language injection in the RichFaces framework.

- **Severity:** Critical 9.8 (`CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Yes, since 28 Sep 2023 (CISA KEV)
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 6 Nov 2018
- **Updated:** 21 Oct 2025
- **Also known as:** GHSA-j7mw-7crr-658v, RHSA-2018:3517

## What is CVE-2018-14667?

CVE-2018-14667 is a critical code injection vulnerability in Redhat Enterprise Linux, published on 6 Nov 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

The RichFaces Framework 3.X through 3.3.4 is vulnerable to Expression Language (EL) injection via the UserResource resource. A remote, unauthenticated attacker could exploit this to execute arbitrary code using a chain of java serialized objects via org.ajax4jsf.resource.UserResource$UriData.

Weakness: CWE-94 (Improper Control of Generation of Code)

## Which versions are affected by CVE-2018-14667?

2 open source packages ship an affected version, including org.richfaces:richfaces-core. It affects 2 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `org.richfaces:richfaces-core` | Maven | All versions | 3.3.4 |
| `org.richfaces:richfaces-core` | Maven | All versions | 3.3.4 |
| `richfaces` | Red Hat:jboss_enterprise_application_platform:5::el5 | All versions | 0:3.3.1-9.SP3_patch_03.ep5.el5 |
| `richfaces-cdk` | Red Hat:jboss_enterprise_application_platform:5::el5 | All versions | 0:3.3.1-9.SP3_patch_03.ep5.el5 |
| `richfaces-demo` | Red Hat:jboss_enterprise_application_platform:5::el5 | All versions | 0:3.3.1-9.SP3_patch_03.ep5.el5 |
| `richfaces-docs` | Red Hat:jboss_enterprise_application_platform:5::el5 | All versions | 0:3.3.1-9.SP3_patch_03.ep5.el5 |
| `richfaces-framework` | Red Hat:jboss_enterprise_application_platform:5::el5 | All versions | 0:3.3.1-9.SP3_patch_03.ep5.el5 |
| `richfaces-root` | Red Hat:jboss_enterprise_application_platform:5::el5 | All versions | 0:3.3.1-9.SP3_patch_03.ep5.el5 |
| `richfaces-ui` | Red Hat:jboss_enterprise_application_platform:5::el5 | All versions | 0:3.3.1-9.SP3_patch_03.ep5.el5 |
| `richfaces` | Red Hat:jboss_enterprise_application_platform:5::el6 | All versions | 0:3.3.1-6.SP3_patch_03.ep5.el6 |
| `richfaces-demo` | Red Hat:jboss_enterprise_application_platform:5::el6 | All versions | 0:3.3.1-6.SP3_patch_03.ep5.el6 |
| `richfaces-framework` | Red Hat:jboss_enterprise_application_platform:5::el6 | All versions | 0:3.3.1-6.SP3_patch_03.ep5.el6 |
| `richfaces-root` | Red Hat:jboss_enterprise_application_platform:5::el6 | All versions | 0:3.3.1-6.SP3_patch_03.ep5.el6 |
| `richfaces-ui` | Red Hat:jboss_enterprise_application_platform:5::el6 | All versions | 0:3.3.1-6.SP3_patch_03.ep5.el6 |

Products: Redhat Enterprise Linux, Redhat Richfaces.

## How do I fix CVE-2018-14667?

Upgrade org.richfaces:richfaces-core to 3.3.4 or later. US federal agencies must fix it by 19 Oct 2023.

## Is CVE-2018-14667 being exploited?

Yes. Attackers have exploited CVE-2018-14667 in the wild since at least 28 Sep 2023.

Public exploit code:

- All about CVE-2018-14667; From what it is to how to successfully exploit it. (github_poc): https://github.com/syriusbughunt/CVE-2018-14667
- CVE-2018-14667-poc Richfaces漏洞环境及PoC (github_poc): https://github.com/Venscor/CVE-2018-14667-poc
- https://github.com/zeroto01/CVE-2018-14667 (github_poc): https://github.com/zeroto01/CVE-2018-14667
- about CVE-2018-14667 from RichFaces Framework 3.3.4 (github_poc): https://github.com/r00t4dm/CVE-2018-14667
- https://github.com/quandqn/cve-2018-14667 (github_poc): https://github.com/quandqn/cve-2018-14667
- cve-2018-14667 demo (github_poc): https://github.com/nareshmail/cve-2018-14667

## Other vulnerabilities in Redhat Enterprise Linux

- [CVE-2021-20325](https://insights.sbomify.com/CVE-2021-20325/): Missing fixes for CVE-2021-40438 and CVE-2021-26691 in the versions of httpd, as shipped in Red Hat Enterprise Linux 8.5.0, causes a securit (critical 9.8)
- [CVE-2018-25011](https://insights.sbomify.com/CVE-2018-25011/): Memory corruption in libwebp (critical 9.8)
- [CVE-2018-25014](https://insights.sbomify.com/CVE-2018-25014/): Other in libwebp (critical 9.8)
- [CVE-2014-3585](https://insights.sbomify.com/CVE-2014-3585/): Supply chain in redhat-upgrade-tool (critical 9.8)
- [CVE-2023-46846](https://insights.sbomify.com/CVE-2023-46846/): Squid: request/response smuggling in http/1.1 and icap (critical 9.3)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2018-14667 and fix it if it is affected.

What it is: CVE-2018-14667 is a critical code injection vulnerability in Redhat Enterprise Linux, published on 6 Nov 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: Yes. Attackers have exploited CVE-2018-14667 in the wild since at least 28 Sep 2023.

Affected packages and fixed versions:
- org.richfaces:richfaces-core (Maven): affected all versions; fixed in 3.3.4
- org.richfaces:richfaces-core (Maven): affected all versions; fixed in 3.3.4

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2018-14667/ (Markdown: https://insights.sbomify.com/CVE-2018-14667/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2018-14667
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2018-14667
- OSV: https://osv.dev/vulnerability/CVE-2018-14667

---
From sbomify Insights: https://insights.sbomify.com/CVE-2018-14667/
Summaries are generated and may contain mistakes; the official description above is the record.
