CVE-2023-40828 pf4j vulnerable to remote code execution via expandIfZip method in the extract function
A remote attacker can exploit a path traversal flaw in the pf4j library to execute arbitrary code and access sensitive information.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-40828?
CVE-2023-40828 is a high-severity path traversal vulnerability in n/a, published on 28 Aug 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An issue in pf4j pf4j v.3.9.0 and before allows a remote attacker to obtain sensitive information and execute arbitrary code via the expandIfZip method in the extract function.
Weakness: CWE-22
Which versions are affected by CVE-2023-40828?
2 open source packages ship an affected version, including org.pf4j:pf4j. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.pf4j:pf4j Maven | All versions to 3.9.0 | None |
org.pf4j:pf4j Maven | All versions to 3.9.0 | None |
Products include Pf4j Project Pf4j.
How do I fix CVE-2023-40828?
Upgrade to a fixed version.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2023-40828 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-40828 exists.
Other vulnerabilities in n/a
Sources
Also known as DEBIAN-CVE-2023-40828, GHSA-cj8w-v588-p8wx, UBUNTU-CVE-2023-40828.