CVE-2022-20617 OS command execution vulnerability in Jenkins Docker Commons Plugin

High 8.8 Published Updated

Attackers with configure permissions or SCM control can execute OS commands via unsanitized image names in the Jenkins Docker Commons 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-20617?

CVE-2022-20617 is a high-severity command injection vulnerability in Jenkins Docker Commons 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 Docker Commons Plugin 1.17 and earlier does not sanitize the name of an image or a tag, resulting in an OS command execution vulnerability exploitable by attackers with Item/Configure permission or able to control the contents of a previously configured job's SCM repository.

Weakness: CWE-78

Which versions are affected by CVE-2022-20617?

2 open source packages ship an affected version, including org.jenkins-ci.plugins:docker-commons. It affects 1 product.

PackageAffectedFixed in
org.jenkins-ci.plugins:docker-commons MavenAll versions1.18
org.jenkins-ci.plugins:docker-commons MavenAll versions1.18

Products include Jenkins Docker Commons.

How do I fix CVE-2022-20617?

Upgrade org.jenkins-ci.plugins:docker-commons to 1.18 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2022-20617 being exploited?

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

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-jpxj-vgq5-prjc.

Is CVE-2022-20617 in your software?

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

Check your SBOMs for free