# CVE-2017-1000486: Primetek Primefaces Remote Code Execution

> Weak encryption in PrimeFaces allows attackers to achieve remote code execution, requiring developers to upgrade the library.

- **Severity:** Critical 9.8 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Yes, since 10 Jan 2022 (CISA KEV)
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 3 Jan 2018
- **Updated:** 21 Oct 2025
- **Also known as:** GHSA-j239-4gqg-5j54

## What is CVE-2017-1000486?

CVE-2017-1000486 is a critical vulnerability in n/a, published on 3 Jan 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

Primetek Primefaces 5.x is vulnerable to a weak encryption flaw resulting in remote code execution

Weakness: CWE-326 (Inadequate Encryption Strength)

## Which versions are affected by CVE-2017-1000486?

2 open source packages ship an affected version, including org.primefaces:primefaces. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `org.primefaces:primefaces` | Maven | From 5.0 | 6.0 |
| `org.primefaces:primefaces` | Maven | From 5.0 | 6.0 |

Products: Primetek Primefaces.

## How do I fix CVE-2017-1000486?

Upgrade org.primefaces:primefaces to 6.0 or later. US federal agencies must fix it by 10 Jul 2022.

## Is CVE-2017-1000486 being exploited?

Yes. Attackers have exploited CVE-2017-1000486 in the wild since at least 10 Jan 2022.

Public exploit code:

- Primefaces <= 5.2.21, 5.3.8 or 6.0 - Remote Code Execution Exploit (github_poc): https://github.com/pimps/CVE-2017-1000486
- exploit for CVE-2017-1000486 vulnerability with SOCKS proxy support (github_poc): https://github.com/dsssssssm/pwnfaces
- Proof of Concept Exploit for PrimeFaces 5.x EL Injection (CVE-2017-1000486) (github_poc): https://github.com/mogwailabs/CVE-2017-1000486
- https://github.com/Pastea/CVE-2017-1000486 (github_poc): https://github.com/Pastea/CVE-2017-1000486
- Primefaces Remote Code Execution Exploit (metasploit)
- Primefaces 5.x - Remote Code Execution (Metasploit) (exploitdb)

## Other vulnerabilities in n/a

- [CVE-2020-10544](https://insights.sbomify.com/CVE-2020-10544/): Cross-site Scripting in PrimeFaces (medium 6.1)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2017-1000486 and fix it if it is affected.

What it is: CVE-2017-1000486 is a critical vulnerability in n/a, published on 3 Jan 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: Yes. Attackers have exploited CVE-2017-1000486 in the wild since at least 10 Jan 2022.

Affected packages and fixed versions:
- org.primefaces:primefaces (Maven): affected from 5.0; fixed in 6.0
- org.primefaces:primefaces (Maven): affected from 5.0; fixed in 6.0

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-2017-1000486/ (Markdown: https://insights.sbomify.com/CVE-2017-1000486/index.md)
```

## Sources

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

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