Vulnerabilities in pkg:maven/com.cloudbees.jenkins.plugins/kubernetes-credentials-provider
PACKAGECVE-2023-24425 is a MODERATE (CVSS 6.5) exposure of system-scoped kubernetes credentials vulnerability (CWE-284: Improper Access Control) affecting Kubernetes credentials provider libraries in the Maven ecosystem. The issue involves exposure of system-scoped kubernetes credentials in jenkins kubernetes credentials provider plugin. Remediation is available by upgrading affected packages to version 1.209.v862c6e5fb.
pkg:maven/com.cloudbees.jenkins.plugins/kubernetes-credentials-provider
Vulnerability advisories affecting package pkg:maven/com.cloudbees.jenkins.plugins/kubernetes-credentials-provider. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-2jpx-h8j2-g8m4 | CVE-2023-24425 | MODERATE | Exposure of system-scoped Kubernetes credentials in Jenkins Kubernetes Credentials Provider Plugin |
CVE-2023-24425 at a Glance
Security Impact
CVSS: 6.5
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:H/I:N/A:N).
How to Fix CVE-2023-24425
To remediate this vulnerability, upgrade all affected Kubernetes credentials provider 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>com.cloudbees.jenkins.plugins</groupId>
<artifactId>kubernetes-credentials-provider</artifactId>
<version>1.209.v862c6e5fb</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=com.cloudbees.jenkins.plugins
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2023-24425, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=com.cloudbees.jenkins.plugins
Analyze the terminal output to locate any version of Kubernetes credentials provider in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.209.v862c6e5fb), your application is affected.
Note: The mvn dependency:tree -Dincludes=com.cloudbees.jenkins.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-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Kubernetes credentials provider, 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-2023-24425 Affected Kubernetes credentials provider Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
com.cloudbees.jenkins.plugins:kubernetes-credentials-provider
|
Maven |
< 1.209.v862c6e5fb
|
1.209.v862c6e5fb
|
References
Frequently Asked Questions
What is CVE-2023-24425?
Which Kubernetes credentials provider versions are affected?
What version fixes CVE-2023-24425?
Is kubernetes-credentials-provider affected?
What is the CVSS score of CVE-2023-24425?
What CWE is associated with CVE-2023-24425?
How can I check Maven dependencies for CVE-2023-24425?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-2jpx-h8j2-g8m4",
"modified" : "2023-02-03T20:46:00Z",
"published" : "2023-01-26T21:30:18Z",
"aliases" : [ "CVE-2023-24425" ],
"summary" : "Exposure of system-scoped Kubernetes credentials in Jenkins Kubernetes Credentials Provider Plugin",
"details" : "Jenkins Kubernetes Credentials Provider Plugin 1.208.v128ee9800c04 and earlier does not set the appropriate context for Kubernetes credentials lookup, allowing attackers with Item/Configure permission to access and potentially capture Kubernetes credentials they are not entitled to.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "com.cloudbees.jenkins.plugins:kubernetes-credentials-provider"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.209.v862c6e5fb"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-24425"
}, {
"type" : "WEB",
"url" : "https://github.com/jenkinsci/kubernetes-credentials-provider-plugin/commit/862c6e5fb1ef65968ebfa399239cbef4fff7afc6"
}, {
"type" : "WEB",
"url" : "https://www.jenkins.io/security/advisory/2023-01-24/#SECURITY-3022"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-284" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-01-27T01:02:39Z",
"nvd_published_at" : "2023-01-26T21:18:00Z"
}
}