PT-2022-26889 · Jenkins · Jenkins Pipeline: Deprecated Groovy Libraries Plugin+2

Devin Nusbaum

·

Published

2022-10-19

·

Updated

2023-11-22

·

CVE-2022-43405

CVSS v3.1

9.9

Critical

VectorAV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Jenkins Pipeline: Groovy Libraries Plugin versions 612.v84da 9c54906d and earlier Jenkins Pipeline: Deprecated Groovy Libraries Plugin versions 583.vf3b 454e43966 and earlier
Description A sandbox bypass issue allows attackers with permission to define untrusted Pipeline libraries and to define and run sandboxed scripts to bypass the sandbox protection and execute arbitrary code in the context of the Jenkins controller JVM. The library step in the affected plugins can be used to invoke sandbox-generated synthetic constructors in crafted untrusted libraries and construct any subclassable type. This issue is similar to a previously reported security advisory, but it affects a different plugin.
Recommendations For Jenkins Pipeline: Groovy Libraries Plugin versions 612.v84da 9c54906d and earlier, update to version 613.v9c41a 160233f or later, which rejects improper calls to sandbox-generated synthetic constructors when using the library step. For Jenkins Pipeline: Deprecated Groovy Libraries Plugin versions 583.vf3b 454e43966 and earlier, update to version 588.v576c103a ff86 or later, which no longer contains the library step. As a temporary workaround, consider restricting the use of the library step in sandboxed Pipelines to minimize the risk of exploitation.

Fix

Protection Mechanism Failure

Weakness Enumeration

Related Identifiers

CVE-2022-43405
GHSA-4HJJ-9GP7-4FRG
RHSA-2023:0560
RHSA-2023:0777
RHSA-2023:1064
RHSA-2023:3198

Affected Products

Jenkins
Jenkins Pipeline: Deprecated Groovy Libraries Plugin
Jenkins Pipeline: Shared Groovy Libraries Plugin