CVE-2017-1000393 OS Command Injection in Jenkins
Users with agent configuration permissions could execute arbitrary shell commands on the Jenkins master node via a specific launch method.
- 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-2017-1000393?
CVE-2017-1000393 is a high-severity command injection vulnerability in Jenkins Jenkins, published on 26 Jan 2018. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Jenkins 2.73.1 and earlier, 2.83 and earlier users with permission to create or configure agents in Jenkins could configure a launch method called 'Launch agent via execution of command on master'. This allowed them to run arbitrary shell commands on the master node whenever the agent was supposed to be launched. Configuration of this launch method now requires the Run Scripts permission typically only granted to administrators.
Weakness: CWE-78
Which versions are affected by CVE-2017-1000393?
4 open source packages ship an affected version, including org.jenkins-ci.main:jenkins-core. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.jenkins-ci.main:jenkins-core Maven | All versions | 2.73.2 |
org.jenkins-ci.main:jenkins-core Maven | All versions | 2.73.2 |
org.jenkins-ci.main:jenkins-core Maven | From 2.74 | 2.84 |
org.jenkins-ci.main:jenkins-core Maven | From 2.74 | 2.84 |
Products include Jenkins Jenkins.
How do I fix CVE-2017-1000393?
Upgrade org.jenkins-ci.main:jenkins-core to a fixed version for your release line: 2.73.2 or 2.84.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2017-1000393 being exploited?
There is no known exploitation of CVE-2017-1000393 in the wild and no public exploit code.
Other vulnerabilities in Jenkins Jenkins
- CVE-2024-23897 Jenkins Command Line Interface (CLI) Path Traversal
- CVE-2018-1000861 Jenkins Stapler Web Framework Deserialization of Untrusted Data
- CVE-2017-1000353 Jenkins Remote Code Execution
- CVE-2015-5317 Jenkins User Interface (UI) Information Disclosure
- CVE-2021-21690 Multiple vulnerabilities allow bypassing path filtering of agent-to-controller access control in Jenkins
Sources
Also known as GHSA-j472-mcq2-95p6.