CVE-2022-45381 Arbitrary file read vulnerability in Jenkins Pipeline Utility Steps Plugin

High 8.1 Published Updated

Attackers with pipeline configuration access can read arbitrary files from the Jenkins controller file system due to unrestricted file prefix interpolators.

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-2022-45381?

CVE-2022-45381 is a high-severity path traversal vulnerability in Jenkins Pipeline Utility Steps Plugin, published on 15 Nov 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Jenkins Pipeline Utility Steps Plugin 2.13.1 and earlier does not restrict the set of enabled prefix interpolators and bundles versions of Apache Commons Configuration library that enable the 'file:' prefix interpolator by default, allowing attackers able to configure Pipelines to read arbitrary files from the Jenkins controller file system.

Weakness: CWE-22

Which versions are affected by CVE-2022-45381?

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

PackageAffectedFixed in
org.jenkins-ci.plugins:pipeline-utility-steps MavenAll versions2.13.2
org.jenkins-ci.plugins:pipeline-utility-steps MavenAll versions2.13.2

Products include Jenkins Pipeline Utility Steps.

How do I fix CVE-2022-45381?

Upgrade org.jenkins-ci.plugins:pipeline-utility-steps to 2.13.2 or later.

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

Is CVE-2022-45381 being exploited?

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

Sources

Also known as GHSA-3g9q-cmgv-g4p6.

Is CVE-2022-45381 in your software?

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

Check your SBOMs for free