CVE-2021-21696
CRITICAL 9.8CVSS 3.1Agent-to-controller access control allowed writing to sensitive directory used by Jenkins Pipeline: Shared Groovy Libraries Plugin
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.
- Published
- 4 Nov 2021
- Last modified
- 17 Jun 2026
- Assigned by
- jenkinsci-cert@googlegroups.com
- NVD status
- Modified
- Weakness
- CWE-693
- Also known as
- BIT-jenkins-2021-21696GHSA-c5r9-rx53-q3gf
- Sources
- NVDJSONOSV GHSA-c5r9-rx53-q3gfJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | jenkins | jenkinscpe:2.3:a:jenkins:jenkins:*:*:*:*:lts:*:*:* |
<= 2.303.2 | |
| NVD | jenkins | jenkinscpe:2.3:a:jenkins:jenkins:*:*:*:*:-:*:*:* |
<= 2.318 | |
| OSV | Maven | org.jenkins-ci.main:jenkins-core | < 2.303.3 | 2.303.3 |
| OSV | Maven | org.jenkins-ci.main:jenkins-core | >= 2.304, < 2.319 | 2.319 |
References
- http://www.openwall.com/lists/oss-security/2021/11/04/3 · Mailing List, Third Party Advisory, WEB
- https://www.jenkins.io/security/advisory/2021-11-04/#SECURITY-2423 · Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-21696 · ADVISORY
- https://github.com/jenkinsci/jenkins/commit/93451e20c20cfd84badeb0f37c38d4c0c7a5dad3 · WEB
- https://github.com/jenkinsci/jenkins · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 4 Nov 2021)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 24 May 2022)