Description
Jenkins 2.318 and earlier, LTS 2.303.2 and earlier does not limit agent read/write access to the libs/ directory inside build directories when using the FilePath APIs, allowing attackers in control of agent processes to replace the code of a trusted library with a modified variant. This results in unsandboxed code execution in the Jenkins controller process.
Remediation
References
https://www.jenkins.io/security/advisory/2021-11-04/#SECURITY-2423
http://www.openwall.com/lists/oss-security/2021/11/04/3
Related Vulnerabilities
CVE-2017-3160 Vulnerability in npm package cordova-android
CVE-2020-6454 Vulnerability in npm package electron
CVE-2018-17184 Vulnerability in maven package org.apache.syncope:syncope-core
CVE-2021-36749 Vulnerability in maven package org.apache.druid:druid-core
CVE-2018-1273 Vulnerability in maven package org.springframework.data:spring-data-commons