CVE-2024-47805: Credentials Jenkins Credentials Plugin Reveals Encrypted Vulnerability

MODERATE
Advisory Identifier: GHSA-62jv-j4w7-5hh8
CVSS 4.3
CWE-522 CWE-200
Published
Advisory Summary

CVE-2024-47805 is a MODERATE (CVSS 4.3) jenkins credentials plugin reveals encrypted vulnerability (CWE-522: Insufficiently Protected Credentials) affecting Credentials libraries in the Maven ecosystem. The issue involves jenkins credentials plugin reveals encrypted values of credentials to users with extended read permission. Remediation is available by upgrading affected packages to version 1381.v2c3a, 1371.1373.v4eb.

CVE-2024-47805 at a Glance

CVE Identifier CVE-2024-47805
GHSA Identifier GHSA-62jv-j4w7-5hh8
Severity MODERATE
CVSS v3.1 Base Score 4.3
CWE Classification CWE-522: Insufficiently Protected Credentials
Affected Product Credentials
Package Ecosystem Maven
Published Date
Last Updated

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

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 Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2024-47805

To remediate this vulnerability, upgrade all affected Credentials dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.jenkins-ci.plugins:credentials fixed: 1381.v2c3a
<dependency>
    <groupId>org.jenkins-ci.plugins</groupId>
    <artifactId>credentials</artifactId>
    <version>1381.v2c3a</version>
</dependency>
org.jenkins-ci.plugins:credentials fixed: 1371.1373.v4eb
<dependency>
    <groupId>org.jenkins-ci.plugins</groupId>
    <artifactId>credentials</artifactId>
    <version>1371.1373.v4eb</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=org.jenkins-ci.plugins

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2024-47805, 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 Credentials in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1381.v2c3a), 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-522: Insufficiently Protected Credentials, where the product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval. In Credentials, 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 Credentials Plugin 1380.va_435002fa_924 and earlier, except 1371.1373.v4eb_fa_b_7161e9, does not redact encrypted values of credentials using the `SecretBytes` type (e.g., Certificate credentials, or Secret file credentials from Plain Credentials Plugin) when accessing item `config.xml` via REST API or CLI. This allows attackers with Item/Extended Read permission to view encrypted `SecretBytes` values in credentials. This issue is similar to SECURITY-266 in the 2016-05-11 security advisory, which applied to the `Secret` type used for inline secrets and some credentials types. Credentials Plugin 1381.v2c3a_12074da_b_ redacts the encrypted values of credentials using the `SecretBytes` type in item `config.xml` files. This fix is only effective on Jenkins 2.479 and newer, LTS 2.462.3 and newer. While Credentials Plugin 1381.v2c3a_12074da_b_ can be installed on Jenkins 2.463 through 2.478 (both inclusive), encrypted values of credentials using the `SecretBytes` type will not be redacted when accessing item `config.xml` via REST API or CLI.

CVE-2024-47805 Affected Credentials Versions

2 component(s)
Fixed Versions:
1381.v2c3a1371.1373.v4eb
Product / Package Ecosystem Affected Versions Fixed Version
org.jenkins-ci.plugins:credentials
Maven
≥ 1372
< 1381.v2c3a
1381.v2c3a
org.jenkins-ci.plugins:credentials
Maven
< 1371.1373.v4eb
1371.1373.v4eb

References

Frequently Asked Questions

What is CVE-2024-47805?
CVE-2024-47805 is a security vulnerability in Credentials involving Jenkins Credentials plugin reveals encrypted values of credentials to users with Extended Read permission under CWE-522: Insufficiently Protected Credentials.
Which Credentials versions are affected?
Affected versions include releases prior to 1381.v2c3a, 1371.1373.v4eb across affected packages: org.jenkins-ci.plugins:credentials.
What version fixes CVE-2024-47805?
Upgrading to 1381.v2c3a, 1371.1373.v4eb (or the latest patched release for your respective branch) resolves the vulnerability.
Is credentials affected?
Yes, org.jenkins-ci.plugins:credentials is affected in releases prior to 1381.v2c3a, 1371.1373.v4eb. Upgrade your dependency to 1381.v2c3a, 1371.1373.v4eb or later.
What is the CVSS score of CVE-2024-47805?
CVE-2024-47805 has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2024-47805?
CVE-2024-47805 is classified under CWE-522: Insufficiently Protected Credentials (The product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval.).
How can I check Maven dependencies for CVE-2024-47805?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.jenkins-ci.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-62jv-j4w7-5hh8",
  "modified" : "2024-10-08T15:13:46Z",
  "published" : "2024-10-02T18:31:32Z",
  "aliases" : [ "CVE-2024-47805" ],
  "summary" : "Jenkins Credentials plugin reveals encrypted values of credentials to users with Extended Read permission",
  "details" : "Jenkins Credentials Plugin 1380.va_435002fa_924 and earlier, except 1371.1373.v4eb_fa_b_7161e9, does not redact encrypted values of credentials using the `SecretBytes` type (e.g., Certificate credentials, or Secret file credentials from Plain Credentials Plugin) when accessing item `config.xml` via REST API or CLI.\n\nThis allows attackers with Item/Extended Read permission to view encrypted `SecretBytes` values in credentials.\n\nThis issue is similar to SECURITY-266 in the 2016-05-11 security advisory, which applied to the `Secret` type used for inline secrets and some credentials types.\n\nCredentials Plugin 1381.v2c3a_12074da_b_ redacts the encrypted values of credentials using the `SecretBytes` type in item `config.xml` files.\n\nThis fix is only effective on Jenkins 2.479 and newer, LTS 2.462.3 and newer. While Credentials Plugin 1381.v2c3a_12074da_b_ can be installed on Jenkins 2.463 through 2.478 (both inclusive), encrypted values of credentials using the `SecretBytes` type will not be redacted when accessing item `config.xml` via REST API or CLI. ",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.jenkins-ci.plugins:credentials"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1372"
      }, {
        "fixed" : "1381.v2c3a"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.jenkins-ci.plugins:credentials"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1371.1373.v4eb"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-47805"
  }, {
    "type" : "WEB",
    "url" : "https://www.jenkins.io/security/advisory/2024-10-02/#SECURITY-3373"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-522" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-10-02T21:50:48Z",
    "nvd_published_at" : "2024-10-02T16:15:10Z"
  }
}