{"id":"GHSA-6q78-6xvr-26fg","summary":"Jenkins Groovy Plugin sandbox bypass vulnerability","details":"Jenkins Script Security sandbox protection could be circumvented during the script compilation phase by applying AST transforming annotations such as `@Grab` to source code elements.\n\nBoth the pipeline validation REST APIs and actual script/pipeline execution are affected.\n\nThis allowed users with Overall/Read permission, or able to control Jenkinsfile or sandboxed Pipeline shared library contents in SCM, to bypass the sandbox protection and execute arbitrary code on the Jenkins controller.\n\nAll known unsafe AST transformations in Groovy are now prohibited in sandboxed scripts.","aliases":["CVE-2019-1003001"],"modified":"2024-12-02T05:47:15.799367Z","published":"2022-05-13T01:15:20Z","database_specific":{"nvd_published_at":"2019-01-22T14:29:00Z","cwe_ids":[],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2023-10-25T21:19:55Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-1003001"},{"type":"WEB","url":"https://github.com/jenkinsci/pipeline-model-definition-plugin/commit/6d7884dec610bf34503d24d494d994e9fc607642"},{"type":"WEB","url":"https://github.com/jenkinsci/script-security-plugin/commit/2c5122e50742dd16492f9424992deb21cc07837c"},{"type":"WEB","url":"https://github.com/jenkinsci/workflow-cps-plugin/commit/66c3e7aafe7888d4e1fe9995a688bb3fb742d742"},{"type":"WEB","url":"https://access.redhat.com/errata/RHBA-2019:0326"},{"type":"WEB","url":"https://access.redhat.com/errata/RHBA-2019:0327"},{"type":"WEB","url":"https://jenkins.io/security/advisory/2019-01-08/#SECURITY-1266"},{"type":"WEB","url":"https://www.exploit-db.com/exploits/46572"},{"type":"WEB","url":"http://packetstormsecurity.com/files/152132/Jenkins-ACL-Bypass-Metaprogramming-Remote-Code-Execution.html"},{"type":"WEB","url":"http://www.rapid7.com/db/modules/exploit/multi/http/jenkins_metaprogramming"}],"affected":[{"package":{"name":"org.jenkins-ci.plugins.workflow:workflow-cps-parent","ecosystem":"Maven","purl":"pkg:maven/org.jenkins-ci.plugins.workflow/workflow-cps-parent"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.61.1"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 2.61","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-6q78-6xvr-26fg/GHSA-6q78-6xvr-26fg.json"}},{"package":{"name":"org.jenkins-ci.plugins:pipeline-model-definition","ecosystem":"Maven","purl":"pkg:maven/org.jenkins-ci.plugins/pipeline-model-definition"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.4.1"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 1.3.4","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-6q78-6xvr-26fg/GHSA-6q78-6xvr-26fg.json"}},{"package":{"name":"org.jenkins-ci.plugins:script-security","ecosystem":"Maven","purl":"pkg:maven/org.jenkins-ci.plugins/script-security"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.50"}]}],"versions":["1.0","1.0-beta-1","1.0-beta-2","1.0-beta-3","1.0-beta-4","1.0-beta-5","1.0-beta-6","1.1","1.10","1.11","1.12","1.13","1.14","1.15","1.16","1.17","1.18","1.18.1","1.19","1.2","1.20","1.21","1.22","1.23","1.24","1.25","1.26","1.27","1.28","1.29","1.29.1","1.3","1.30","1.31","1.33","1.34","1.35","1.36","1.37","1.38","1.39","1.4","1.40","1.41","1.42","1.43","1.44","1.44.1","1.45","1.46","1.46.1","1.47","1.48","1.49","1.5","1.6","1.7","1.8","1.9"],"database_specific":{"last_known_affected_version_range":"\u003c= 1.49","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-6q78-6xvr-26fg/GHSA-6q78-6xvr-26fg.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}