CVE-2017-1000393 OS Command Injection in Jenkins

High 8.8 Published Updated

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.

PackageAffectedFixed in
org.jenkins-ci.main:jenkins-core MavenAll versions2.73.2
org.jenkins-ci.main:jenkins-core MavenAll versions2.73.2
org.jenkins-ci.main:jenkins-core MavenFrom 2.742.84
org.jenkins-ci.main:jenkins-core MavenFrom 2.742.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.

All Jenkins Jenkins vulnerabilities

Sources

Also known as GHSA-j472-mcq2-95p6.

Is CVE-2017-1000393 in your software?

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

Check your SBOMs for free