MODERATE 4.3

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)

ArtifactAffected versionsFixed in
org.jenkins-ci.plugins » ssh-agent
< 1.22.1>= 1.23, < 1.23.2
1.22.1, 1.23.2

Blast radius

1affected artifacts
27affected versions
11dependent artifacts (est.)
178dependent versions

18% of the dependent artifacts (2) still pull an affected version in their latest release.

DepthDependent versions
Direct
105
2 hops
5
3 hops
49
4 hops
19

Most used dependents

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.