Skip to content
OpenAdvisories
Critical · 9.9 CVE-2022-43402 EUVD-2022-7132GHSA-mqc2-w9r8-mmxm

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

Published Oct 19, 2022 · Updated Aug 3, 2024 · Assigned by jenkins

Description

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.

Affected products

VendorProductAffectedFixed
Jenkins project Jenkins Pipeline: Groovy Plugin unspecified – ≤ 2802.v5ea_628154b_c2 2759.2761.vd6e8d2a_15980

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Red Hat OpenShift 4 jenkins 2.361.1.1675668150-1.el8 RHSA-2023:0777
Red Hat OpenShift 4 jenkins-2-plugins 4.9.1675668922-1.el8 RHSA-2023:0777, RHSA-2023:0560
Red Hat Ocp Tools 4 jenkins 2.387.1.1683009763-3.el8 RHSA-2023:3198
Red Hat Ocp Tools 4 jenkins-2-plugins 4.11.1683009941-1.el8 RHSA-2023:3198, RHSA-2023:1064

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.jenkins-ci.plugins.workflow:workflow-cps < 2803.v1a_f77ffcc773 2803.v1a_f77ffcc773 GHSA-mqc2-w9r8-mmxm

Advisories 6

References