CVE-2021-21664: Incorrect permission check in XebiaLabs XL Deploy Plugin allows capturing credentials
6.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.14381%
CWE
Published
5/24/2022
Updated
12/21/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 |
|---|---|---|---|
| com.xebialabs.deployit.ci:deployit-plugin | maven | <= 10.0.1 | 10.0.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The key vulnerability stemmed from Credential.java's doValidateCredential method where the permission check was improperly implemented. The patch shows this method initially lacked any permission check, then added a check for Permission.CREATE (insufficient for the sensitive credential validation operation). The vulnerability description explicitly states the permission check was 'added but for the wrong permission' in earlier partial fixes. This method handles credential validation against external URLs, making it the attack vector for credential capture when combined with the weak CREATE permission check.