Vulnerabilities in pkg:maven/org.jenkins-ci.plugins/kubernetes-cli
PACKAGECVE-2021-21661 is a MODERATE (CVSS 4.3) missing authorization vulnerability (CWE-862: Missing Authorization) affecting Kubernetes cli libraries in the Maven ecosystem. The issue involves missing authorization in jenkins kubernetes cli plugin. Remediation is available by upgrading affected packages to version 1.10.1.
pkg:maven/org.jenkins-ci.plugins/kubernetes-cli
Vulnerability advisories affecting package pkg:maven/org.jenkins-ci.plugins/kubernetes-cli. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-xrg9-wwrq-xmx9 | CVE-2021-21661 | MODERATE | Missing Authorization in Jenkins Kubernetes CLI Plugin |
CVE-2021-21661 at a Glance
Security Impact
CVSS: 4.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2021-21661
To remediate this vulnerability, upgrade all affected Kubernetes cli dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>kubernetes-cli</artifactId>
<version>1.10.1</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.jenkins-ci.plugins
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2021-21661, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.jenkins-ci.plugins
Analyze the terminal output to locate any version of Kubernetes cli in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.10.1), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.jenkins-ci.plugins command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-862: Missing Authorization, where the product does not perform an authorization check when an actor attempts to access a resource or perform an action. In Kubernetes cli, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2021-21661 Affected Kubernetes cli Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.jenkins-ci.plugins:kubernetes-cli
|
Maven |
< 1.10.1
|
1.10.1
|
References
Frequently Asked Questions
What is CVE-2021-21661?
Which Kubernetes cli versions are affected?
What version fixes CVE-2021-21661?
Is kubernetes-cli affected?
What is the CVSS score of CVE-2021-21661?
What CWE is associated with CVE-2021-21661?
How can I check Maven dependencies for CVE-2021-21661?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xrg9-wwrq-xmx9",
"modified" : "2023-10-27T15:33:07Z",
"published" : "2021-06-16T17:11:30Z",
"aliases" : [ "CVE-2021-21661" ],
"summary" : "Missing Authorization in Jenkins Kubernetes CLI Plugin",
"details" : "Jenkins Kubernetes CLI Plugin 1.10.0 and earlier does not perform permission checks in several HTTP endpoints, allowing attackers with Overall/Read permission to enumerate credentials IDs of credentials stored in Jenkins.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.jenkins-ci.plugins:kubernetes-cli"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.10.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-21661"
}, {
"type" : "WEB",
"url" : "https://www.jenkins.io/security/advisory/2021-06-10/#SECURITY-2370"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2021/06/10/14"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-862" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2021-06-14T19:17:11Z",
"nvd_published_at" : "2021-06-10T15:15:00Z"
}
}