{"id":"CVE-2021-21693","aliases":["CVE-2021-21693","GHSA-929w-q433-4h9x","BIT-JENKINS-2021-21693"],"related":[],"kind":"vulnerability","state":"published","title":"Multiple vulnerabilities allow bypassing path filtering of agent-to-controller access control in Jenkins","summary":"When creating temporary files, agent-to-controller access to create those files is only checked after they've been created in Jenkins 2.318 and earlier, LTS 2.303.2 and earlier.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"When creating temporary files, agent-to-controller access to create those files is only checked after they've been created in Jenkins 2.318 and earlier, LTS 2.303.2 and earlier.","source":"cvelist"},{"lang":"en","text":"The agent-to-controller security subsystem limits which files on the Jenkins controller can be accessed by agent processes.\n\nMultiple vulnerabilities in the file path filtering implementation of Jenkins 2.318 and earlier, LTS 2.303.2 and earlier allow agent processes to read and write arbitrary files on the Jenkins controller file system, and obtain some information about Jenkins controller file systems.\n\nSECURITY-2539 / CVE-2021-21693: When creating temporary files, permission to create files is only checked after they’ve been created.\n\nWe expect that most of these vulnerabilities have been present since [SECURITY-144 was addressed in the 2014-10-30 security advisory](https://www.jenkins.io/security/advisory/2014-10-30/).\n\nJenkins 2.319, LTS 2.303.3 addresses these security vulnerabilities.\n\nSECURITY-2539 / CVE-2021-21693: When creating temporary files, permission to create files is checked before they are created based on an artificial path.\n\nAs some common operations are now newly subject to access control, it is expected that plugins sending commands from agents to the controller may start failing. Additionally, the newly introduced path canonicalization means that instances using a custom builds directory ([Java system property jenkins.model.Jenkins.buildsDir](https://www.jenkins.io/doc/book/managing/system-properties/#jenkins-model-jenkins-buildsdir)) or partitioning `JENKINS_HOME` using symbolic links may fail access control checks. See [the documentation](https://www.jenkins.io/doc/book/security/controller-isolation/agent-to-controller/#file-access-rules) for how to customize the configuration in case of problems.\n\nIf you are unable to immediately upgrade to Jenkins 2.319, LTS 2.303.3, you can install the [Remoting Security Workaround Plugin](https://www.jenkins.io/redirect/remoting-security-workaround/). It will prevent all agent-to-controller file access using `FilePath` APIs. Because it is more restrictive than Jenkins 2.319, LTS 2.303.3, more plugins are incompatible with it. Make sure to read the plugin documentation before installing it.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Cuando son creados archivos temporales, el acceso de agente a controlador para crear esos archivos sólo se comprueba después de haberlos creado en Jenkins versiones 2.318 y anteriores, LTS versiones 2.303.2 y anteriores","source":"nvd"},{"lang":"en","text":"When creating temporary files, agent-to-controller access to create those files is only checked after they've been created in Jenkins LTS 2.303.2 and earlier.","format":"markdown","source":"bitnami"}],"published":"2021-11-04T00:00:00.000Z","modified":"2026-09-08T08:47:59.086Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","score":9,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"CRITICAL"}],"cwes":["CWE-285","CWE-863"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","lastAffected":"2.318","status":"affected"},{"type":"custom","introduced":"unspecified","lastAffected":"LTS 2.303.2","status":"affected"}],"vendor":"Jenkins project","product":"Jenkins","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.303.3"}],"ecosystem":"Maven","package":"org.jenkins-ci.main:jenkins-core","purl":"pkg:maven/org.jenkins-ci.main/jenkins-core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.304","status":"affected","fixed":"2.319"}],"ecosystem":"Maven","package":"org.jenkins-ci.main:jenkins-core","purl":"pkg:maven/org.jenkins-ci.main/jenkins-core","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.303.3"},{"status":"affected","fixed":"2.319"}],"vendor":"jenkins","product":"jenkins","cpe":"cpe:2.3:a:jenkins:jenkins:*:*:*:*:lts:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.319.0"}],"ecosystem":"Bitnami","package":"jenkins","purl":"pkg:bitnami/jenkins","source":"bitnami"}],"references":[{"url":"https://www.jenkins.io/security/advisory/2021-11-04/#SECURITY-2455","tags":["advisory","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21693","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/jenkinsci/jenkins/commit/104c751d907919dd53f5090f84d53c671a66457b","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/jenkinsci/jenkins/commit/5a245e42979abe4a26d41727c839521e36cedd74","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/jenkinsci/jenkins/commit/63cde2daadc705edf086f2213b48c8c547f98358","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/jenkinsci/jenkins","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"jenkins","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-21693","url":"https://www.cve.org/CVERecord?id=CVE-2021-21693","licence":"CVE Terms of Use","modified":"2024-08-03T18:23:29.405Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-929w-q433-4h9x","url":"https://github.com/advisories/GHSA-929w-q433-4h9x","licence":"CC-BY-4.0","modified":"2024-02-16T08:24:10.871Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-21693","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21693","licence":"Public domain","modified":"2026-06-17T03:36:00.507Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-JENKINS-2021-21693","url":"https://osv.dev/vulnerability/BIT-JENKINS-2021-21693","licence":"Apache-2.0","modified":"2026-09-08T08:47:59.086Z"}],"updatedAt":"2026-11-25T22:58:05.354Z","epss":{"score":0.01555,"percentile":0.75886,"date":"2026-12-01T12:00:22.000Z"}}