CVE-2017-1000095 Unsafe methods in the default list of approved signatures in Jenkins Script Security Plugin

Medium 6.5 Published Updated

Attackers can bypass Jenkins script sandbox restrictions to access private data or circumvent access controls via unsafe Groovy method whitelisting.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2017-1000095?

CVE-2017-1000095 is a medium-severity vulnerability in n/a, published on 4 Oct 2017. Any signed-in user can exploit it over the network, with no action from the victim.

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

Weakness: CWE-732

Which versions are affected by CVE-2017-1000095?

2 open source packages ship an affected version, including org.jenkins-ci.plugins:script-security. It affects 1 product.

PackageAffectedFixed in
org.jenkins-ci.plugins:script-security MavenAll versions1.29.1
org.jenkins-ci.plugins:script-security MavenAll versions1.29.1
Linux distribution packages (1)
jenkins-plugin-script-security Red Hat:openshift:3.6::el7All versions0:1.29-1.el7

Products include Jenkins Script Security.

How do I fix CVE-2017-1000095?

Upgrade org.jenkins-ci.plugins:script-security to 1.29.1 or later.

Is CVE-2017-1000095 being exploited?

There is no known exploitation of CVE-2017-1000095 in the wild and no public exploit code.

Sources

Also known as GHSA-m68x-cc2f-gr5h, RHEA-2017:1716.

Is CVE-2017-1000095 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free