GitHub Advisory Database
GHSA-j472-mcq2-95p6
OS Command Injection in Jenkins
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Maven | org.jenkins-ci.main:jenkins-core | All versions before 2.73.2 (fixed in 2.73.2) |
| Maven | org.jenkins-ci.main:jenkins-core | From 2.74 before 2.84 (fixed in 2.84) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-1000393
- https://github.com/jenkinsci/jenkins/commit/67f68c181033cbabf2075769e0f846f58c226c08
- https://github.com/jenkinsci/jenkins/commit/d7ea3f40efedd50541a57b943d5f7bbed046d091
- https://github.com/jenkinsci/jenkins
- https://jenkins.io/security/advisory/2017-10-11