Vulnerabilities in pkg:maven/com.cloudbees.jenkins.plugins/kubernetes-credentials-provider

PACKAGE
Advisory Identifier: GHSA-2jpx-h8j2-g8m4
Advisory Summary

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

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/com.cloudbees.jenkins.plugins/kubernetes-credentials-provider

1 Known Advisory Record(s)

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

CVE Identifier CVE-2023-24425
GHSA Identifier GHSA-2jpx-h8j2-g8m4
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-284: Improper Access Control
Affected Product Kubernetes credentials provider
Package Ecosystem Maven
Published Date
Last Updated

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (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.

com.cloudbees.jenkins.plugins:kubernetes-credentials-provider fixed: 1.209.v862c6e5fb
<dependency>
    <groupId>com.cloudbees.jenkins.plugins</groupId>
    <artifactId>kubernetes-credentials-provider</artifactId>
    <version>1.209.v862c6e5fb</version>
</dependency>
Verify Direct and Transitive Dependencies

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

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.

CVE-2023-24425 Affected Kubernetes credentials provider Versions

1 component(s)
Fixed Versions:
1.209.v862c6e5fb
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?
CVE-2023-24425 is a security vulnerability in Kubernetes credentials provider involving Exposure of system-scoped Kubernetes credentials in Jenkins Kubernetes Credentials Provider Plugin under CWE-284: Improper Access Control.
Which Kubernetes credentials provider versions are affected?
Affected versions include releases prior to 1.209.v862c6e5fb across affected packages: com.cloudbees.jenkins.plugins:kubernetes-credentials-provider.
What version fixes CVE-2023-24425?
Upgrading to 1.209.v862c6e5fb (or the latest patched release for your respective branch) resolves the vulnerability.
Is kubernetes-credentials-provider affected?
Yes, com.cloudbees.jenkins.plugins:kubernetes-credentials-provider is affected in releases prior to 1.209.v862c6e5fb. Upgrade your dependency to 1.209.v862c6e5fb or later.
What is the CVSS score of CVE-2023-24425?
CVE-2023-24425 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2023-24425?
CVE-2023-24425 is classified under CWE-284: Improper Access Control (The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.).
How can I check Maven dependencies for CVE-2023-24425?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.cloudbees.jenkins.plugins'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}