Loading...
Skip to main content

CVE-2022-43402 — Vulnerability in...

CRITICAL

Jenkins Pipeline: Groovy Plugin allows sandbox protection bypass and arbitrary code execution

Published October 19, 2022Updated November 8, 2023Source: osv

Summary

A sandbox bypass vulnerability involving various casts performed implicitly by the Groovy language runtime in Jenkins Pipeline: Groovy Plugin 2802.v5ea_628154b_c2 and earlier allows attackers with permission to define and run sandboxed scripts, including Pipelines, to bypass the sandbox protection and execute arbitrary code in the context of the Jenkins controller JVM. Pipeline: Groovy Plugin 2803.v1a_f77ffcc773 intercepts Groovy casts performed implicitly by the Groovy language runtime

Advisory Timeline

  • First published October 19, 2022 (1454 days ago).
  • Last revised November 8, 2023 — 384 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.jenkins-ci.plugins.workflow:workflow-cps to 2803.v1a_f77ffcc773 or later
<!-- Update pom.xml dependency version to 2803.v1a_f77ffcc773 for org.jenkins-ci.plugins.workflow:workflow-cps -->

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: maven (1).

PackageEcosystemAffectedFixed In
org.jenkins-ci.plugins.workflow:workflow-cps
maven
0.1-beta-1, 0.1-beta-2, 0.1-beta-3, 0.1-beta-4 (+193 more)2803.v1a_f77ffcc773

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-693
    Protection Mechanism FailureMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.9 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2022-43402?
Jenkins Pipeline: Groovy Plugin allows sandbox protection bypass and arbitrary code execution This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.9/10).
How do I check if my project is affected by CVE-2022-43402?
CVE-2022-43402 affects org.jenkins-ci.plugins.workflow:workflow-cps. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-43402 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.9

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-mqc2-w9r8-mmxm

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies