MODERATE 6.5

CVE-2022-25178

Improper Limitation of a Pathname to a Restricted Directory in Jenkins Pipeline: Shared Groovy Libraries Plugin

Description

Jenkins Pipeline: Shared Groovy Libraries Plugin does not restrict the names of resources passed to the libraryResource step, allowing attackers able to configure Pipelines permission to read arbitrary files on the Jenkins controller file system.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.jenkins-ci.plugins.workflow » workflow-cps-global-lib
< 2.18.1>= 2.19, < 2.21.1>= 2.22, < 561.va_ce0de3c2d69
2.18.1, 2.21.1, 561.va_ce0de3c2d69

Blast radius

1affected artifacts
186affected versions
86dependent artifacts (est.)
7,212dependent versions

32% of the dependent artifacts (28) still pull an affected version in their latest release.

DepthDependent versions
Direct
650
2 hops
2,826
3 hops
3,708
4 hops
22
5 hops
6

Most used dependents

Computed from the dependency graph of build 20261201.0702 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.

References

Advisorynvd.nist.gov
Packagegithub.com
Webjenkins.io