CVE-2022-20620: Missing permission checks in SSH Agent Plugin allow enumerating credentials IDs
4.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.75657%
CWE
Published
1/13/2022
Updated
12/27/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.jenkins-ci.plugins:ssh-agent | maven | >= 1.23, < 1.23.2 | 1.23.2 |
org.jenkins-ci.plugins:ssh-agent | maven | < 1.22.1 | 1.22.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from missing authorization checks in HTTP endpoints handling credential enumeration. The commit diff shows both methods were modified to add ACL checks using AccessControlled and CredentialsProvider.VIEW permissions. The added Security2189Test.java confirms these were the vulnerable endpoints by testing permission enforcement scenarios. The functions' pre-patch versions allowed credential ID leakage to users with only Overall/Read access, violating CWE-862 (Missing Authorization).