CVE-2023-46654 Jenkins CloudBees CD Plugin vulnerable to arbitrary file deletion

High 8.1 Published Updated

Attackers with job configuration access can delete arbitrary files on the Jenkins controller via symbolic link traversal in the artifact cleanup process.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-46654?

CVE-2023-46654 is a high-severity path traversal vulnerability in Jenkins CloudBees CD Plugin, published on 25 Oct 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Jenkins CloudBees CD Plugin 1.1.32 and earlier follows symbolic links to locations outside of the expected directory during the cleanup process of the 'CloudBees CD - Publish Artifact' post-build step, allowing attackers able to configure jobs to delete arbitrary files on the Jenkins controller file system.

Weakness: CWE-59

Which versions are affected by CVE-2023-46654?

2 open source packages ship an affected version, including org.jenkins-ci.plugins:electricflow. It affects 1 product.

PackageAffectedFixed in
org.jenkins-ci.plugins:electricflow MavenAll versions1.1.33
org.jenkins-ci.plugins:electricflow MavenAll versions1.1.33

Products include Jenkins Cloudbees Cd.

How do I fix CVE-2023-46654?

Upgrade org.jenkins-ci.plugins:electricflow to 1.1.33 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2023-46654 being exploited?

There is no known exploitation of CVE-2023-46654 in the wild and no public exploit code.

Sources

Also known as GHSA-jx7x-rf3f-j644.

Is CVE-2023-46654 in your software?

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

Check your SBOMs for free