CVE-2022-20620 Missing permission checks in SSH Agent Plugin allow enumerating credentials IDs

Medium 4.3 Published Updated

Attackers with read access can enumerate stored credential IDs due to missing permission checks in the Jenkins SSH Agent Plugin.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-20620?

CVE-2022-20620 is a medium-severity missing authorization vulnerability in Jenkins SSH Agent Plugin, published on 12 Jan 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Missing permission checks in Jenkins SSH Agent Plugin 1.23 and earlier allows attackers with Overall/Read access to enumerate credentials IDs of credentials stored in Jenkins.

Weakness: CWE-862

Which versions are affected by CVE-2022-20620?

4 open source packages ship an affected version, including org.jenkins-ci.plugins:ssh-agent. It affects 1 product.

PackageAffectedFixed in
org.jenkins-ci.plugins:ssh-agent MavenAll versions1.22.1
org.jenkins-ci.plugins:ssh-agent MavenAll versions1.22.1
org.jenkins-ci.plugins:ssh-agent MavenFrom 1.231.23.2
org.jenkins-ci.plugins:ssh-agent MavenFrom 1.231.23.2

Products include Jenkins Ssh Agent.

How do I fix CVE-2022-20620?

Upgrade org.jenkins-ci.plugins:ssh-agent to a fixed version for your release line: 1.22.1 or 1.23.2.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2022-20620 being exploited?

There is no known exploitation of CVE-2022-20620 in the wild and no public exploit code.

Sources

Also known as GHSA-9wxh-jjj5-67cv.

Is CVE-2022-20620 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free