CVE-2024-47805: Credentials Jenkins Credentials Plugin Reveals Encrypted Vulnerability
MODERATECVE-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
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-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.
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>credentials</artifactId>
<version>1381.v2c3a</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>credentials</artifactId>
<version>1371.1373.v4eb</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-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
CVE-2024-47805 Affected Credentials Versions
2 component(s)| 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?
Which Credentials versions are affected?
What version fixes CVE-2024-47805?
Is credentials affected?
What is the CVSS score of CVE-2024-47805?
What CWE is associated with CVE-2024-47805?
How can I check Maven dependencies for CVE-2024-47805?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}