PT-2022-17113 · Jenkins · Jenkins Pipeline: Shared Groovy Libraries Plugin+1

Daniel Beck

·

Published

2022-02-15

·

Updated

2023-11-30

·

CVE-2022-25174

CVSS v3.1

8.8

High

VectorAV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Jenkins Pipeline: Shared Groovy Libraries Plugin versions 552.vd9cc05b8a2e1 and earlier Jenkins Pipeline: Shared Groovy Libraries Plugin version 2.18.1 Jenkins Pipeline: Shared Groovy Libraries Plugin version 2.21.1
Description The issue allows attackers with Item/Configure permission to invoke arbitrary OS commands on the controller through crafted SCM contents. This is possible because the plugin uses the same checkout directories for distinct SCMs for Pipeline libraries.
Recommendations For versions 552.vd9cc05b8a2e1 and earlier, update to a version later than 552.vd9cc05b8a2e1. For version 2.18.1, update to a version later than 2.18.1. For version 2.21.1, update to a version later than 2.21.1. As a temporary workaround, consider restricting access to the plugin's library checkout directories to minimize the risk of exploitation.

Exploit

Fix

OS Command Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2022-25174
GHSA-G9FX-6J5C-GRMW
RHSA-2022:0871
RHSA-2022:1021
RHSA-2022:1025
RHSA-2022:1248
RHSA-2022:1420
RHSA-2022:1620

Affected Products

Jenkins
Jenkins Pipeline: Shared Groovy Libraries Plugin