CVE-2019-1003001 in jenkins pipeline

LogPulse has a published detection rule for this CVE: it raises a notable when someone tries to exploit it.

What the vulnerability is

A sandbox bypass vulnerability exists in Pipeline: Groovy Plugin 2.61 and earlier in src/main/java/org/jenkinsci/plugins/workflow/cps/CpsFlowDefinition.java, src/main/java/org/jenkinsci/plugins/workflow/cps/CpsGroovyShellFactory.java that allows attackers with Overall/Read permission to provide a pipeline script to an HTTP endpoint that can result in arbitrary code execution on the Jenkins master JVM.

Affected software: jenkins pipeline, redhat openshift container platform

Scores

What LogPulse has for it

How to mitigate it

Update Jenkins Script Security and Pipeline: Groovy plugins (SECURITY-1266)

Patch or upgrade. Old Script Security, Pipeline: Groovy and Pipeline: Declarative plugins compile scripts sent to checkScriptCompile without a sandbox, so anyone with Overall/Read runs code. The January 2019 fixed versions add the checks.

Applies to: Jenkins Script Security 1.49 and earlier, Pipeline: Groovy 2.61 and earlier, Pipeline: Declarative 1.3.4 and earlier.

  1. In Jenkins, open Manage Jenkins > Plugins > Installed and check Script Security, Pipeline: Groovy and Pipeline: Declarative.
  2. Update them to the versions in the Jenkins advisory of 2019-01-28 or later (current versions are preferred) and restart Jenkins.
  3. Remove Overall/Read for anonymous users if the controller is reachable from untrusted networks.

Sources:

Source data: NIST NVD, CISA KEV and FIRST EPSS. LogPulse processes new CVEs every hour.

We build every detection with great care, but no two environments are the same. Log sources, parsing and configuration differ, so test a detection in your own environment before you rely on it.

Start free with LogPulse