CVE-2022-20617 OS command execution vulnerability in Jenkins Docker Commons Plugin
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.
| Package | Affected | Fixed in |
|---|---|---|
org.jenkins-ci.plugins:docker-commons Maven | All versions | 1.18 |
org.jenkins-ci.plugins:docker-commons Maven | All versions | 1.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.
Other vulnerabilities in Jenkins Docker Commons Plugin
Sources
Also known as GHSA-jpxj-vgq5-prjc.