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-2023-37912 Vulnerability in maven package org.xwiki.rendering:xwiki-rendering-macro-footnotes
CVE-2022-21810 Vulnerability in npm package smartctl
CVE-2020-2249 Vulnerability in maven package org.jenkins-ci.plugins:tfs
CVE-2020-17527 Vulnerability in maven package org.apache.tomcat:tomcat-coyote