CVE-2022-20616 Incorrect Permission Assignment for Critical Resource in Jenkins Credentials Binding Plugin

Medium 4.3 Published Updated

Attackers with read access can validate credential IDs and file types due to missing permission checks in form validation.

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-20616?

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

Official description

Jenkins Credentials Binding Plugin 1.27 and earlier does not perform a permission check in a method implementing form validation, allowing attackers with Overall/Read access to validate if a credential ID refers to a secret file credential and whether it's a zip file.

Weakness: CWE-862

Which versions are affected by CVE-2022-20616?

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

PackageAffectedFixed in
org.jenkins-ci.plugins:credentials-binding MavenAll versions1.24.1
org.jenkins-ci.plugins:credentials-binding MavenAll versions1.24.1
org.jenkins-ci.plugins:credentials-binding MavenFrom 1.251.27.1
org.jenkins-ci.plugins:credentials-binding MavenFrom 1.251.27.1

Products include Jenkins Credentials Binding.

How do I fix CVE-2022-20616?

Upgrade org.jenkins-ci.plugins:credentials-binding to a fixed version for your release line: 1.24.1 or 1.27.1.

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

Is CVE-2022-20616 being exploited?

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

Sources

Also known as GHSA-gqm2-2gcx-p88w.

Is CVE-2022-20616 in your software?

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

Check your SBOMs for free