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

Summary

24/05/2022
Yes i
High
8.8

CVE-2021-21677: RCE vulnerability in Jenkins Code Coverage API Plugin. Affects io.jenkins.plugins:code-coverage-api versions < 1.4.1. Fixed in 1.4.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Jenkins Code Coverage API Plugin is a Maven package that provides functionality for code coverage analysis in Jenkins. It allows users to measure the extent to which their source code is tested by their test suite. The plugin integrates with various code coverage tools and generates reports to help developers identify areas of their code that are not adequately covered by tests. However, versions 1.4.0 and earlier of the plugin are vulnerable to a remote code execution (RCE) exploit.

Vulnerability Detail

The vulnerability in the Code Coverage API Plugin arises from its failure to apply JEP-200 deserialization protection to Java objects it deserializes from disk. This oversight allows attackers with control over agent processes to execute arbitrary code on the target system. The impact of this vulnerability is severe, as it grants unauthorized access to the Jenkins environment and potentially enables further attacks. The vulnerability has a CVSS score of 8.8, indicating a high severity level.

How To Fix

Latest published version: 4.99.0 as of 23 Oct 2026

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.4.1

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is crucial to update to the fixed version of the Code Coverage API Plugin to ensure the security of the Jenkins environment.

Conclusion

The RCE vulnerability in the Jenkins Code Coverage API Plugin (CVE-2021-21677) poses a significant risk to Jenkins environments. It is crucial for users of the affected versions to update to version 1.4.1 or later to mitigate the vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for io.jenkins.plugins:code-coverage-api →

Share this vulnerability

FAQ

The Code Coverage API Plugin is a Jenkins plugin that provides code coverage analysis functionality. It helps developers measure the extent to which their source code is tested by their test suite.

The vulnerability allows attackers to execute arbitrary code on the target system, potentially granting unauthorized access to the Jenkins environment and enabling further attacks.

To fix this vulnerability, it is recommended to upgrade to Code Coverage API Plugin version 1.4.1 or later. This version includes the necessary configuration to mitigate the RCE vulnerability.

There is no known workaround for this vulnerability. It is crucial to update to the fixed version of the Code Coverage API Plugin to ensure the security of the Jenkins environment.

The CVSS score of this vulnerability is 8.8, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for io.jenkins.plugins:code-coverage-api.

How To Fix

Latest published version: 4.99.0 as of 23 Oct 2026

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.4.1

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback