CVE-2024-52550: Workflow cps Groovy Plugin Vulnerability

HIGH
Advisory Identifier: GHSA-mrpr-vr82-x88r
CVSS 8.0
CWE-285 CWE-354
Published
Advisory Summary

CVE-2024-52550 is a HIGH (CVSS 8.0) groovy plugin vulnerability (CWE-285: Improper Authorization) affecting Workflow cps libraries in the Maven ecosystem. The issue involves groovy plugin. Remediation is available by upgrading affected packages to version 3993.v3e20a.

CVE-2024-52550 at a Glance

CVE Identifier CVE-2024-52550
GHSA Identifier GHSA-mrpr-vr82-x88r
Severity HIGH
CVSS v3.1 Base Score 8.0
CWE Classification CWE-285: Improper Authorization
Affected Product Workflow cps
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 8.0

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2024-52550

To remediate this vulnerability, upgrade all affected Workflow cps dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.jenkins-ci.plugins.workflow:workflow-cps fixed: 3993.v3e20a
<dependency>
    <groupId>org.jenkins-ci.plugins.workflow</groupId>
    <artifactId>workflow-cps</artifactId>
    <version>3993.v3e20a</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.jenkins-ci.plugins.workflow

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2024-52550, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.jenkins-ci.plugins.workflow

Analyze the terminal output to locate any version of Workflow cps in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3993.v3e20a), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.jenkins-ci.plugins.workflow command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-285: Improper Authorization, where the product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action. In Workflow cps, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Jenkins Pipeline: Groovy Plugin 3990.vd281dd77a_388 and earlier, except 3975.3977.v478dd9e956c3 does not check whether the main (Jenkinsfile) script for a rebuilt build is approved, allowing attackers with Item/Build permission to rebuild a previous build whose (Jenkinsfile) script is no longer approved. This allows attackers with Item/Build permission to rebuild a previous build whose (Jenkinsfile) script is no longer approved. Pipeline: Groovy Plugin 3993.v3e20a_37282f8 refuses to rebuild a build whose main (Jenkinsfile) script is unapproved.

CVE-2024-52550 Affected Workflow cps Versions

1 component(s)
Fixed Versions:
3993.v3e20a
Product / Package Ecosystem Affected Versions Fixed Version
org.jenkins-ci.plugins.workflow:workflow-cps
Maven
< 3993.v3e20a
3993.v3e20a

References

Frequently Asked Questions

What is CVE-2024-52550?
CVE-2024-52550 is a security vulnerability in Workflow cps involving Groovy Plugin under CWE-285: Improper Authorization.
Which Workflow cps versions are affected?
Affected versions include releases prior to 3993.v3e20a across affected packages: org.jenkins-ci.plugins.workflow:workflow-cps.
What version fixes CVE-2024-52550?
Upgrading to 3993.v3e20a (or the latest patched release for your respective branch) resolves the vulnerability.
Is workflow-cps affected?
Yes, org.jenkins-ci.plugins.workflow:workflow-cps is affected in releases prior to 3993.v3e20a. Upgrade your dependency to 3993.v3e20a or later.
What is the CVSS score of CVE-2024-52550?
CVE-2024-52550 has a CVSS v3.1 base score of 8.0 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2024-52550?
CVE-2024-52550 is classified under CWE-285: Improper Authorization (The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.).
How can I check Maven dependencies for CVE-2024-52550?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.jenkins-ci.plugins.workflow'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-mrpr-vr82-x88r",
  "modified" : "2024-11-26T19:00:12Z",
  "published" : "2024-11-13T21:30:38Z",
  "aliases" : [ "CVE-2024-52550" ],
  "summary" : "Rebuilding a run with revoked script approval allowed by Jenkins Pipeline: Groovy Plugin ",
  "details" : "Jenkins Pipeline: Groovy Plugin 3990.vd281dd77a_388 and earlier, except 3975.3977.v478dd9e956c3 does not check whether the main (Jenkinsfile) script for a rebuilt build is approved, allowing attackers with Item/Build permission to rebuild a previous build whose (Jenkinsfile) script is no longer approved. This allows attackers with Item/Build permission to rebuild a previous build whose (Jenkinsfile) script is no longer approved. Pipeline: Groovy Plugin 3993.v3e20a_37282f8 refuses to rebuild a build whose main (Jenkinsfile) script is unapproved.\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.jenkins-ci.plugins.workflow:workflow-cps"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3993.v3e20a"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-52550"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/jenkinsci/workflow-cps-plugin"
  }, {
    "type" : "WEB",
    "url" : "https://www.jenkins.io/security/advisory/2024-11-13/#SECURITY-3362"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-285", "CWE-354" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-11-14T15:41:46Z",
    "nvd_published_at" : "2024-11-13T21:15:29Z"
  }
}