CVE-2023-40826 pf4j vulnerable to remote code execution via the zippluginPath parameter
A remote attacker can exploit a path traversal vulnerability in pf4j to read sensitive files and execute arbitrary code via the zippluginPath parameter.
- 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-40826?
CVE-2023-40826 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 zippluginPath parameter.
Weakness: CWE-22
Which versions are affected by CVE-2023-40826?
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-40826?
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-40826 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-40826 exists.
Other vulnerabilities in n/a
- CVE-2025-70952 pf4j is vulnerable to Path Traversal or Zip Slip attack through improper handling of zip entry names
- CVE-2023-40827 pf4j vulnerable to remote code execution via loadpluginPath parameter
- CVE-2023-40828 pf4j vulnerable to remote code execution via expandIfZip method in the extract function
Sources
Also known as DEBIAN-CVE-2023-40826, GHSA-3r28-rgp9-qgv4, UBUNTU-CVE-2023-40826.