CVE-2023-40827 pf4j vulnerable to remote code execution via loadpluginPath parameter

High 7.5 Published Updated

A remote attacker can exploit a path traversal vulnerability in pf4j 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-40827?

CVE-2023-40827 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 loadpluginPath parameter.

Weakness: CWE-22

Which versions are affected by CVE-2023-40827?

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

PackageAffectedFixed in
org.pf4j:pf4j MavenAll versions to 3.9.0None
org.pf4j:pf4j MavenAll versions to 3.9.0None

Products include Pf4j Project Pf4j.

How do I fix CVE-2023-40827?

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-40827 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-40827 exists.

Sources

Also known as DEBIAN-CVE-2023-40827, GHSA-rvm8-j2cp-j592, UBUNTU-CVE-2023-40827.

Is CVE-2023-40827 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free