CVE-2022-20620
Missing permission checks in SSH Agent Plugin allow enumerating credentials IDs
Description
Jenkins SSH Agent Plugin prior to 1.23.2 and 1.22.1 does not perform permission checks in several HTTP endpoints.
This allows attackers with Overall/Read access to enumerate credentials IDs of credentials stored in Jenkins. Those can be used as part of an attack to capture the credentials using another vulnerability.
An enumeration of credentials IDs in SSH Agent Plugin 1.23.2 and 1.22.1 requires the appropriate permissions.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.jenkins-ci.plugins » ssh-agent | < 1.22.1>= 1.23, < 1.23.2 | 1.22.1, 1.23.2 |
Blast radius
18% of the dependent artifacts (2) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 105 |
| 2 hops | 5 |
| 3 hops | 49 |
| 4 hops | 19 |
Most used dependents
- org.jenkins-ci.plugins » git227 usages
- org.jenkins-ci.plugins » git-client67 usages
- com.coravy.hudson.plugins.github » github22 usages
- org.jenkins-ci.plugins » ghprb2 usages
- org.jenkins-ci.plugins » stashNotifier1 usages
- org.jenkins-ci.plugins » elasticbox0 usages
- org.jenkins-ci.plugins » github-pullrequest0 usages
- org.jenkins-ci.ruby-plugins » gitlab-hook0 usages
- com.elasticbox.jenkins-ci.plugins » elasticbox0 usages
- com.compuware.jenkins » compuware-ispw-operations0 usages
- org.jenkins-ci.plugins » salesforce-migration-assistant-plugin0 usages
Computed from the dependency graph of build 20261127.1117 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2022-20620 | nvd.nist.gov |
| Package | jenkinsci/ssh-agent-plugin | github.com |
| Web | jenkinsci/ssh-agent-plugin commit 04f526d | github.com |
| Web | jenkinsci/ssh-agent-plugin commit 9c08b9f | github.com |
| Web | CVEProject/cvelist CVE-2022-20620.json | github.com |
| Web | security/advisory/2022-01-12 | jenkins.io |
| Web | lists/oss-security/2022/01/12/6 | openwall.com |
