CVE-2021-21661: Missing Authorization in Jenkins Kubernetes CLI Plugin

Summary

16/06/2021
Yes i
Moderate
4.3

CVE-2021-21661: Missing Authorization in Jenkins Kubernetes CLI Plugin. Affects org.jenkins-ci.plugins:kubernetes-cli versions < 1.10.1. Fixed in 1.10.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 Your last release was probably never penetration tested 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 Kubernetes CLI Plugin is a Maven-based plugin that allows users to interact with Kubernetes clusters from within Jenkins. It provides a command-line interface (CLI) for managing Kubernetes resources and executing commands on Kubernetes clusters. The plugin integrates with Jenkins to enable seamless deployment and management of applications on Kubernetes. However, versions 1.10.0 and earlier of the plugin suffer from a vulnerability that allows attackers with Overall/Read permission to enumerate credentials IDs of credentials stored in Jenkins.

Vulnerability Detail

The vulnerability in the Jenkins Kubernetes CLI Plugin arises from the lack of proper permission checks in several HTTP endpoints. This oversight enables attackers with Overall/Read permission to retrieve the credentials IDs of stored credentials in Jenkins. By exploiting this vulnerability, an attacker could gain unauthorized access to sensitive information, potentially leading to further compromise of the Jenkins environment. The Common Vulnerabilities and Exposures (CVE) identifier for this vulnerability is CVE-2021-21661. The vulnerability has a CVSSv3 score of 4.3, indicating a moderate severity level.

How To Fix

Minimum fixed version

1.10.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 specific workaround available for this vulnerability. However, users can mitigate the risk by ensuring that only trusted users have Overall/Read permission in Jenkins. Additionally, it is crucial to regularly monitor and review the permissions assigned to users and restrict access to sensitive credentials.

Conclusion

The Jenkins Kubernetes CLI Plugin versions 1.10.0 and earlier are vulnerable to a missing authorization issue that allows attackers with Overall/Read permission to enumerate credentials IDs. Upgrading to version 1.10.1 or later is recommended to fix this vulnerability. It is also important to review and restrict user permissions to mitigate the risk. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.jenkins-ci.plugins:kubernetes-cli →

Share this vulnerability

FAQ

The vulnerability allows attackers with Overall/Read permission to enumerate credentials IDs of stored credentials in Jenkins, potentially leading to unauthorized access to sensitive information.

You can use the Vulert Playground at Vulert Scanner to check if your Jenkins environment is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities, using just the pom.xml file for analysis.

Yes, upgrading to version 1.10.1 or later of the Jenkins Kubernetes CLI Plugin fixes this vulnerability by implementing proper permission checks in the affected HTTP endpoints.

While there is no specific workaround, you can mitigate the risk by ensuring that only trusted users have Overall/Read permission in Jenkins and regularly reviewing user permissions.

The CVSSv3 score for this vulnerability is 4.3, indicating a moderate severity level.

How To Fix

Minimum fixed version

1.10.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