Exploit database

Vulnerability

CVE-2019-1003000

Vulnerability details

Score
8.8
Severity
high

CVSS 3.1 · NVD

Vector string

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Description

A sandbox bypass vulnerability exists in Script Security Plugin 1.49 and earlier in src/main/java/org/jenkinsci/plugins/scriptsecurity/sandbox/groovy/GroovySandbox.java that allows attackers with the ability to provide sandboxed scripts to execute arbitrary code on the Jenkins master JVM.

CVE Program

Exploit source choices

9 sources
Jenkins ACL Bypass and Metaprogramming RCE
MSF-multi--http--jenkins_metaprogrammingMetasploitJava,Unix / remote

This module exploits a vulnerability in Jenkins dynamic routing to bypass the Overall/Read ACL and leverage Groovy metaprogramming to download and execute a malicious JAR file. When the "Java Dropper" target is selected, the original entry point based on classLoader.parseClass is used, which requires the use of Groovy metaprogramming to achieve RCE. When the "Unix In-Memory" target is selected, a newer, higher-level, and more universal entry point based on GroovyShell.parse is used. This permits the use of in-memory arbitrary command execution. The ACL bypass gadget is specific to Jenkins <= 2.137 and will not work on later versions of Jenkins. Tested against Jenkins 2.137 and Pipeline: Groovy Plugin 2.61.

2019-01-08jenkins_metaprogramming.rb
adamyordan/cve-2019-1003000-jenkins-rce-poc
GH-c8e6cacad977ea93af3bd960d3286ed0GitHubUnofficial GitHub source

Jenkins RCE Proof-of-Concept: SECURITY-1266 / CVE-2019-1003000 (Script Security), CVE-2019-1003001 (Pipeline: Groovy), CVE-2019-1003002 (Pipeline: Declarative)

2019-02-152,639 files · 314 stars
wetw0rk/exploit-development
GH-d4726372d6b67469e40e5ec8eddc36e8GitHubUnofficial GitHub source

CVE-2020-8012, CVE-2016-10709, CVE-2017-17099, CVE-2017-18047, CVE-2019-1003000, CVE-2018-1999002

2017-04-2663 files · 83 stars
1nthekut/cve-2019-1003000_rce-detection
GH-ab02fb9c4521857118a3b69154360547GitHubUnofficial GitHub source

A C# module to detect if a Jenkins server is vulnerable to the RCE vulnerability found in CVE-2019-1003000 (chained with CVE-2018-1000861 for pre-auth RCE)

2019-04-245,597 files · 4 stars
purple-wl/jenkins_cve-2019-1003000
GH-0c418afb1a14dea043ee33a84728c2c0GitHubUnofficial GitHub source

purple-wl/jenkins_cve-2019-1003000 source repository

2022-02-122 files · 1 stars
brunsu/woodswiki
GH-f3660552a0a96da2b9e1d1390d991a4dGitHubUnofficial GitHub source

brunsu/woodswiki source repository

2022-09-233 files · 0 stars