CVE-2021-21677 RCE vulnerability in Jenkins Code Coverage API Plugin

High 8.8 Published Updated

Remote attackers can execute arbitrary code by exploiting unsafe deserialization in the Jenkins Code Coverage API Plugin.

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-2021-21677?

CVE-2021-21677 is a high-severity unsafe deserialization vulnerability in Jenkins Code Coverage API Plugin, published on 31 Aug 2021. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Jenkins Code Coverage API Plugin 1.4.0 and earlier does not apply Jenkins JEP-200 deserialization protection to Java objects it deserializes from disk, resulting in a remote code execution vulnerability.

Weakness: CWE-502

Which versions are affected by CVE-2021-21677?

2 open source packages ship an affected version, including io.jenkins.plugins:code-coverage-api. It affects 1 product.

PackageAffectedFixed in
io.jenkins.plugins:code-coverage-api MavenAll versions1.4.1
io.jenkins.plugins:code-coverage-api MavenAll versions1.4.1

Products include Jenkins Code Coverage Api.

How do I fix CVE-2021-21677?

Upgrade io.jenkins.plugins:code-coverage-api to 1.4.1 or later.

Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.

Is CVE-2021-21677 being exploited?

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

Sources

Also known as GHSA-58pr-hprx-7hg6.

Is CVE-2021-21677 in your software?

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

Check your SBOMs for free