CVE-2021-21697
CRITICAL 9.1CVSS 3.1Agent-to-controller access control allows reading/writing most content of build directories in Jenkins
Jenkins 2.318 and earlier, LTS 2.303.2 and earlier allows any agent to read and write the contents of any build directory stored in Jenkins with very few restrictions.
- Published
- 4 Nov 2021
- Last modified
- 17 Jun 2026
- Assigned by
- jenkinsci-cert@googlegroups.com
- NVD status
- Modified
- Weakness
- CWE-184
- Also known as
- BIT-jenkins-2021-21697GHSA-cv2w-q8c3-xjv7
- Sources
- NVDJSONOSV GHSA-cv2w-q8c3-xjv7JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.4 | AV:N/AC:L/Au:N/C:P/I:P/A:N |
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-2428 · Patch, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-21697 · ADVISORY
- https://github.com/jenkinsci/jenkins/commit/cf388d2a04e6016d23eb93fa3cc804f2554b98f0 · WEB
- https://github.com/jenkinsci/jenkins/commit/eae33841b587da787f37d5b6c8451d483edc04d9 · 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)