Bug 1735515 (CVE-2019-10355) - CVE-2019-10355 jenkins-plugin-script-security: Sandbox bypass through type casts in Script Security Plugin
Summary: CVE-2019-10355 jenkins-plugin-script-security: Sandbox bypass through type ca...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2019-10355
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: 1735516 1735526 1735527 1735528
Blocks: 1735517
TreeView+ depends on / blocked
 
Reported: 2019-08-01 03:18 UTC by Sam Fowler
Modified: 2021-02-16 21:35 UTC (History)
19 users (show)

Fixed In Version: jenkins-plugin-script-security 1.62
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in Jenkins Script Security plugin. Sandbox protection could be circumvented by casting crafted objects to other types allowing an attacker to specify sandboxed scripts to invoke constructors that weren't previously whitelisted. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.
Clone Of:
Environment:
Last Closed: 2019-09-04 13:07:28 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2019:2651 0 None None None 2019-09-04 07:15:46 UTC
Red Hat Product Errata RHSA-2019:2662 0 None None None 2019-09-11 05:16:30 UTC

Description Sam Fowler 2019-08-01 03:18:59 UTC
Sandbox protection in Jenkins Script Security Plugin could be circumvented by casting crafted objects to other types. This allowed attackers able to specify sandboxed scripts to invoke constructors that weren’t whitelisted.

Additionally, this could be used to read arbitrary files on the Jenkins master.

Casting collections to other types as an alternative syntax for constructor invocation is now only allowed when the collection type is defined in java.util, and prohibited otherwise. Casting files and enums to arrays is now intercepted by the sandbox and treated as the invocation of an equivalent method.


External References:

https://jenkins.io/security/advisory/2019-07-31/#SECURITY-1465%20(1)

Comment 1 Sam Fowler 2019-08-01 03:19:22 UTC
Created jenkins-script-security-plugin tracking bugs for this issue:

Affects: fedora-all [bug 1735516]

Comment 5 Sam Fowler 2019-08-01 04:00:04 UTC
"Any security advisory related updates to Jenkins core or the plugins we include in the OpenShift Jenkins master image will only occur in the v3.11 and v4.x branches of this repository."

https://github.com/openshift/jenkins/blob/master/README.md#jenkins-security-advisories-the-master-image-from-this-repository-and-the-oc-binary

Comment 6 errata-xmlrpc 2019-09-04 07:15:45 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 3.11

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

Comment 7 Product Security DevOps Team 2019-09-04 13:07:28 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2019-10355

Comment 8 errata-xmlrpc 2019-09-11 05:16:28 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.1

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


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