CVE-2020-2139 Arbitrary file write vulnerability in Jenkins Cobertura Plugin

Medium 6.5 Published Updated

Attackers controlling coverage report contents can overwrite arbitrary files on the Jenkins master, potentially leading to code execution.

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-2020-2139?

CVE-2020-2139 is a medium-severity path traversal vulnerability in Jenkins Cobertura Plugin, published on 9 Mar 2020. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

An arbitrary file write vulnerability in Jenkins Cobertura Plugin 1.15 and earlier allows attackers able to control the coverage report file contents to overwrite any file on the Jenkins master file system.

Weakness: CWE-22

Which versions are affected by CVE-2020-2139?

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

PackageAffectedFixed in
org.jenkins-ci.plugins:cobertura MavenAll versions1.16
org.jenkins-ci.plugins:cobertura MavenAll versions1.16

Products include Jenkins Cobertura.

How do I fix CVE-2020-2139?

Upgrade org.jenkins-ci.plugins:cobertura to 1.16 or later.

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

Is CVE-2020-2139 being exploited?

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

Sources

Also known as GHSA-m935-chfp-9f63.

Is CVE-2020-2139 in your software?

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

Check your SBOMs for free