CVE-2021-21643: Incorrect permission checks in Jenkins Config File Provider Plugin allow enumerating credentials IDs
6.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.63099%
CWE
Published
5/24/2022
Updated
12/7/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| org.jenkins-ci.plugins:config-file-provider | maven | <= 3.7.0 | 3.7.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from incorrect authorization checks in credential enumeration endpoints. The commit diff shows both functions were modified to replace a simple Item.CONFIGURE check with more granular permission checks (ADMINISTER for global, EXTENDED_READ+USE_ITEM for projects). The original implementations' use of Item.CONFIGURE allowed attackers with that permission (which is broader than required) to access credential IDs. The added test cases in Security2254Test.java validate that proper permissions are now required, confirming these were the vulnerable endpoints.