Bug 1670283 (CVE-2019-1003005) - CVE-2019-1003005 jenkins-plugin-script-security: Sandbox Bypass in Script Security Plugin (SECURITY-1292)
Summary: CVE-2019-1003005 jenkins-plugin-script-security: Sandbox Bypass in Script Sec...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2019-1003005
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1670284 1671470 1688578
Blocks: 1670285
TreeView+ depends on / blocked
 
Reported: 2019-01-29 07:24 UTC by Sam Fowler
Modified: 2021-10-07 10:36 UTC (History)
16 users (show)

Fixed In Version: jenkins-script-security-plugin 1.51
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Jenkins Script Security plugin through version 1.50. The fix for CVE-2019-1003000 was found to be incomplete. Script Security sandbox protection could be circumvented during the script compilation phase by applying AST transforming annotations such as @Grab to source code elements. This affected an HTTP endpoint used to validate a user-submitted Groovy script that was not covered in the 2019-01-08 fix for SECURITY-1266 and allowed users with Overall/Read permission to bypass the sandbox protection and execute arbitrary code on the Jenkins master. The affected HTTP endpoint now applies a safe Groovy compiler configuration prohibiting unsafe AST transforming annotations. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.
Clone Of:
Environment:
Last Closed: 2019-06-10 10:46:38 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2019:0739 0 None None None 2019-04-10 18:34:12 UTC

Description Sam Fowler 2019-01-29 07:24:25 UTC
Jenkins Script Security plugin through version 1.50 is vulnerable to an incomplete fix to CVE-2019-1003000.

Script Security sandbox protection could be circumvented during the script compilation phase by applying AST transforming annotations such as @Grab to source code elements.

This affected an HTTP endpoint used to validate a user-submitted Groovy script that was not covered in the 2019-01-08 fix for SECURITY-1266 and allowed users with Overall/Read permission to bypass the sandbox protection and execute arbitrary code on the Jenkins master.

The affected HTTP endpoint now applies a safe Groovy compiler configuration prohibiting unsafe AST transforming annotations.

External Reference:

https://jenkins.io/security/advisory/2019-01-28/#SECURITY-1292

Upstream patches:

https://github.com/jenkinsci/script-security-plugin/commit/35119273101af26792457ec177f34f6f4fa49d99

Comment 1 Sam Fowler 2019-01-29 07:24:34 UTC
Created jenkins-script-security-plugin tracking bugs for this issue:

Affects: fedora-all [bug 1670284]

Comment 3 Paul Harvey 2019-02-04 06:25:36 UTC
openshift-enterprise 3.2-3.11 inclusive: affected

Once openshift3/jenkins-1-rhel7, openshift3/jenkins-2-rhel7, openshift3/jenkins-slave-base-rhel7 container images have been released with these fixes, users of all versions of openshift-enterprise-3.2+ are encouraged to update these container images in their environment.

Comment 5 errata-xmlrpc 2019-04-10 18:34:11 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 3.11

Via RHSA-2019:0739 https://access.redhat.com/errata/RHSA-2019:0739


Note You need to log in before you can comment on or make changes to this bug.