Skip to content
OpenAdvisories
Medium · 6.5 CVE-2017-1000095 EUVD-2022-4503GHSA-m68x-cc2f-gr5h

Unsafe methods in the default list of approved signatures in Jenkins Script Security Plugin

Published Oct 4, 2017 · Updated Aug 5, 2024 · Assigned by mitre

Description

The default whitelist included the following unsafe entries: DefaultGroovyMethods.putAt(Object, String, Object); DefaultGroovyMethods.getAt(Object, String). These allowed circumventing many of the access restrictions implemented in the script sandbox by using e.g. currentBuild['rawBuild'] rather than currentBuild.rawBuild. Additionally, the following entries allowed accessing private data that would not be accessible otherwise due to script security: groovy.json.JsonOutput.toJson(Closure); groovy.json.JsonOutput.toJson(Object).

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Red Hat OpenShift 3 jenkins-plugin-script-security 1.29-1.el7 RHEA-2017:1716

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.jenkins-ci.plugins:script-security < 1.29.1 1.29.1 GHSA-m68x-cc2f-gr5h

Advisories 1

References