CVE-2021-21696
HIGH8.8EPSS 0.95%Agent-to-controller access control allowed writing to sensitive directory used by Jenkins Pipeline: Shared Groovy Libraries Plugin
Published: 5/24/2022Modified: 4/3/2025
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.
Affected packages (2)
- Bitnami/jenkinsfrom 0, < 2.318.1
- Maven/org.jenkins-ci.main:jenkins-corefrom 0, < 2.303.3
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
References (5)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2021-21696
- PATCHhttps://github.com/jenkinsci/jenkins
- WEBhttps://github.com/jenkinsci/jenkins/commit/93451e20c20cfd84badeb0f37c38d4c0c7a5dad3
- WEBhttps://www.jenkins.io/security/advisory/2021-11-04/#SECURITY-2423
- WEBhttp://www.openwall.com/lists/oss-security/2021/11/04/3