CVE-2022-25188 Path traversal vulnerability in Jenkins Fortify Plugin

Medium 4.3 Published Updated

Attackers with Item/Configure permission can write or overwrite XML files on the Jenkins controller via unsanitized Pipeline step parameters.

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-25188?

CVE-2022-25188 is a medium-severity path traversal vulnerability in Jenkins Fortify Plugin, published on 15 Feb 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Jenkins Fortify Plugin 20.2.34 and earlier does not sanitize the appName and appVersion parameters of its Pipeline steps, allowing attackers with Item/Configure permission to write or overwrite .xml files on the Jenkins controller file system with content not controllable by the attacker.

Weakness: CWE-22

Which versions are affected by CVE-2022-25188?

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

PackageAffectedFixed in
org.jenkins-ci.plugins:fortify MavenAll versions20.2.35
org.jenkins-ci.plugins:fortify MavenAll versions20.2.35

Products include Jenkins Fortify.

How do I fix CVE-2022-25188?

Upgrade org.jenkins-ci.plugins:fortify to 20.2.35 or later.

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

Is CVE-2022-25188 being exploited?

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

Sources

Also known as GHSA-23h5-8ph6-7rfc.

Is CVE-2022-25188 in your software?

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

Check your SBOMs for free