CVE-2021-21686
HIGH 8.1CVSS 3.1Multiple vulnerabilities allow bypassing path filtering of agent-to-controller access control in Jenkins
File path filters in the agent-to-controller security subsystem of Jenkins 2.318 and earlier, LTS 2.303.2 and earlier do not canonicalize paths, allowing operations to follow symbolic links to outside allowed directories.
- Published
- 4 Nov 2021
- Last modified
- 17 Jun 2026
- Assigned by
- jenkinsci-cert@googlegroups.com
- NVD status
- Modified
- Weakness
- CWE-22CWE-59
- Also known as
- BIT-jenkins-2021-21686GHSA-4g38-hrm4-rg94
- Sources
- NVDJSONOSV GHSA-4g38-hrm4-rg94JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.8 | AV:N/AC:M/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.3 | 2.303.3 |
| NVD | jenkins | jenkinscpe:2.3:a:jenkins:jenkins:*:*:*:*:-:*:*:* |
< 2.319 | 2.319 |
| 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
- https://www.jenkins.io/security/advisory/2021-11-04/#SECURITY-2455 · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-21686 · ADVISORY
- https://github.com/jenkinsci/jenkins/commit/104c751d907919dd53f5090f84d53c671a66457b · WEB
- https://github.com/jenkinsci/jenkins/commit/5a245e42979abe4a26d41727c839521e36cedd74 · WEB
- https://github.com/jenkinsci/jenkins/commit/63cde2daadc705edf086f2213b48c8c547f98358 · 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:12 UTC · OSV: first stored (published 24 May 2022)