# CVE-2021-21686: Multiple vulnerabilities allow bypassing path filtering of agent-to-controller access control in Jenkins

- Severity: High 8.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.98%, higher than 81% of CVEs (2026-12-01)
- Published: 2021-11-04T16:30:25.000Z
- Modified: 2026-09-08T08:47:58.231Z
- Also known as: GHSA-4g38-hrm4-rg94, BIT-JENKINS-2021-21686
- Weaknesses: CWE-22, CWE-59
- Assigned by: jenkins

## Description

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.

(As written by CVE List.)

## Affected

- Jenkins project Jenkins: from unspecified up to 2.318; from unspecified up to LTS 2.303.2
- org.jenkins-ci.main:jenkins-core (Maven): before 2.303.3; from 2.304 before 2.319
- jenkins jenkins: before 2.303.3; before 2.319
- jenkins (Bitnami): before 2.319.0

## Every score

- GitHub: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- NVD: CVSS:2.0 5.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://www.jenkins.io/security/advisory/2021-11-04/#SECURITY-2455> (advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21686> (advisory, web)
- <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)

## Sources

- CVE List: [CVE-2021-21686](https://www.cve.org/CVERecord?id=CVE-2021-21686), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-4g38-hrm4-rg94](https://github.com/advisories/GHSA-4g38-hrm4-rg94), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2021-21686](https://nvd.nist.gov/vuln/detail/CVE-2021-21686), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-JENKINS-2021-21686](https://osv.dev/vulnerability/BIT-JENKINS-2021-21686), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-21686 · Whole record: https://cve.day/CVE-2021-21686.json · Rebuilt by cve.day 2026-11-25T22:58:05.351Z
