CVE-2020-2139 Arbitrary file write vulnerability in Jenkins Cobertura Plugin
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.
| Package | Affected | Fixed in |
|---|---|---|
org.jenkins-ci.plugins:cobertura Maven | All versions | 1.16 |
org.jenkins-ci.plugins:cobertura Maven | All versions | 1.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.
Other vulnerabilities in Jenkins Cobertura Plugin
Sources
Also known as GHSA-m935-chfp-9f63.