Skip to content

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

Moderate severity GitHub Reviewed Published May 13, 2022 to the GitHub Advisory Database • Updated Jan 30, 2024

Package

maven org.jenkins-ci.plugins:script-security (Maven)

Affected versions

<= 1.29

Patched versions

1.29.1

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).

References

Published by the National Vulnerability Database Oct 5, 2017
Published to the GitHub Advisory Database May 13, 2022
Reviewed Jan 30, 2024
Last updated Jan 30, 2024

Severity

Moderate
6.5
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Weaknesses

CVE ID

CVE-2017-1000095

GHSA ID

GHSA-m68x-cc2f-gr5h

Source code

No known source code
Checking history
See something to contribute? Suggest improvements for this vulnerability.