CVE-2017-1000505 Exposure of Sensitive Information to an Unauthorized Actor Jenkins Script Security Plugin

Medium 6.5 Published Updated

Attackers with script configuration rights can read arbitrary files on the Jenkins master via Groovy type coercion bypassing sandbox restrictions.

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-1000505?

CVE-2017-1000505 is a medium-severity path traversal vulnerability in n/a, published on 25 Jan 2018. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

In Jenkins Script Security Plugin version 1.36 and earlier, users with the ability to configure sandboxed Groovy scripts are able to use a type coercion feature in Groovy to create new `File` objects from strings. This allowed reading arbitrary files on the Jenkins master file system. Such a type coercion is now subject to sandbox protection and considered to be a call to the `new File(String)` constructor for the purpose of in-process script approval.

Weakness: CWE-200

Which versions are affected by CVE-2017-1000505?

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.37
org.jenkins-ci.plugins:script-security MavenAll versions1.37

Products include Jenkins Script Security.

How do I fix CVE-2017-1000505?

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

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2017-1000505 being exploited?

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

Sources

Also known as GHSA-r9jf-hf9x-7hrv.

Is CVE-2017-1000505 in your software?

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

Check your SBOMs for free