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

- Severity: Critical 9.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/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.56%, higher than 75% of CVEs (2026-12-01)
- Published: 2021-11-04T16:30:24.000Z
- Modified: 2026-09-08T08:48:00.921Z
- Also known as: GHSA-58xm-mxjf-254g, BIT-JENKINS-2021-21685
- Weaknesses: CWE-862
- Assigned by: jenkins

## Description

Jenkins 2.318 and earlier, LTS 2.303.2 and earlier does not check agent-to-controller access to create parent directories in FilePath#mkdirs.

(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 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:2.0 6.4 Medium `AV:N/AC:L/Au:N/C:P/I:P/A:N`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://www.jenkins.io/security/advisory/2021-11-04/#SECURITY-2455> (advisory, vendor-advisory, web)
- <http://www.openwall.com/lists/oss-security/2021/11/04/3> (advisory, mailing-list, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21685> (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-21685](https://www.cve.org/CVERecord?id=CVE-2021-21685), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-58xm-mxjf-254g](https://github.com/advisories/GHSA-58xm-mxjf-254g), CC-BY-4.0, modified 2024-03-15
- NVD: [CVE-2021-21685](https://nvd.nist.gov/vuln/detail/CVE-2021-21685), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-JENKINS-2021-21685](https://osv.dev/vulnerability/BIT-JENKINS-2021-21685), Apache-2.0, modified 2026-09-08

---

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