CVE-2022-23118 Agent-to-controller security bypass in Jenkins Debian Package Builder Plugin
Attackers controlling Jenkins agents can execute arbitrary OS commands on the controller via the Debian Package Builder Plugin.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2022-23118?
CVE-2022-23118 is a high-severity command injection vulnerability in Jenkins Debian Package Builder 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 Debian Package Builder Plugin 1.6.11 and earlier implements functionality that allows agents to invoke command-line `git` at an attacker-specified path on the controller, allowing attackers able to control agent processes to invoke arbitrary OS commands on the controller.
Weakness: CWE-668
Which versions are affected by CVE-2022-23118?
2 open source packages ship an affected version, including ru.yandex.jenkins.plugins.debuilder:debian-package-builder. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
ru.yandex.jenkins.plugins.debuilder:debian-package-builder Maven | All versions to 1.6.11 | None |
ru.yandex.jenkins.plugins.debuilder:debian-package-builder Maven | All versions to 1.6.11 | None |
Products include Jenkins Debian Package Builder.
How do I fix CVE-2022-23118?
No fix has been published for CVE-2022-23118 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2022-23118 being exploited?
There is no known exploitation of CVE-2022-23118 in the wild and no public exploit code.
Other vulnerabilities in Jenkins Debian Package Builder Plugin
Sources
Also known as GHSA-8xjp-rp29-v5j8.