{"id":"CVE-2021-21615","aliases":["CVE-2021-21615","GHSA-qxp6-27gw-99cj","BIT-JENKINS-2021-21615"],"related":[],"kind":"vulnerability","state":"published","title":"Time-of-check Time-of-use (TOCTOU) Race Condition in Jenkins","summary":"Jenkins 2.275 and LTS 2.263.2 allows reading arbitrary files using the file browser for workspaces and archived artifacts due to a time-of-check to time-of-use (TOCTOU) race condition.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Jenkins 2.275 and LTS 2.263.2 allows reading arbitrary files using the file browser for workspaces and archived artifacts due to a time-of-check to time-of-use (TOCTOU) race condition.","source":"cvelist"},{"lang":"en","text":"Due to a time-of-check to time-of-use (TOCTOU) race condition, the file browser for workspaces, archived artifacts, and `$JENKINS_HOME/userContent/` follows symbolic links to locations outside the directory being browsed in Jenkins 2.275 and LTS 2.263.2.\n\nThis allows attackers with Job/Workspace permission and the ability to control workspace contents, e.g., with Job/Configure permission or the ability to change SCM contents, to create symbolic links that allow them to access files outside workspaces using the workspace browser.\n\nThis issue is caused by an incorrectly applied fix for SECURITY-1452 / CVE-2021-21602 in the [2021-01-13 security advisory](https://www.jenkins.io/security/advisory/2021-01-13/#SECURITY-1452).\n\nJenkins 2.276, LTS 2.263.3 no longer differentiates the check and the use of symlinks in workspace browsers.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Jenkins versiones 2.275 y LTS 2.263.2, permiten leer archivos arbitrarios usando el explorador de archivos para espacios de trabajo y artefactos archivados debido a una condición de carrera de tipo time-of-check a time-of-use (TOCTOU)","source":"nvd"},{"lang":"en","text":"Jenkins LTS 2.263.2 allows reading arbitrary files using the file browser for workspaces and archived artifacts due to a time-of-check to time-of-use (TOCTOU) race condition.","format":"markdown","source":"bitnami"}],"published":"2021-01-26T10:55:13.000Z","modified":"2026-09-08T08:47:57.678Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:S/C:P/I:N/A:N","score":3.5,"rating":"LOW"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-367"],"affected":[{"ranges":[{"version":"2.275","status":"affected"},{"version":"LTS 2.263.2","status":"affected"}],"vendor":"Jenkins project","product":"Jenkins","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.263.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.264","status":"affected","fixed":"2.276"}],"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.263.3"},{"status":"affected","fixed":"2.276"}],"vendor":"jenkins","product":"jenkins","cpe":"cpe:2.3:a:jenkins:jenkins:*:*:*:*:lts:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.276.0"}],"ecosystem":"Bitnami","package":"jenkins","purl":"pkg:bitnami/jenkins","source":"bitnami"}],"references":[{"url":"https://www.jenkins.io/security/advisory/2021-01-26/#SECURITY-2197","tags":["advisory","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"http://www.openwall.com/lists/oss-security/2021/01/26/2","tags":["advisory","mailing-list","third-party-advisory","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21615","tags":["advisory","web"],"sources":["ghsa","bitnami"]}],"credits":[],"assigner":"jenkins","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-21615","url":"https://www.cve.org/CVERecord?id=CVE-2021-21615","licence":"CVE Terms of Use","modified":"2024-08-03T18:16:23.697Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qxp6-27gw-99cj","url":"https://github.com/advisories/GHSA-qxp6-27gw-99cj","licence":"CC-BY-4.0","modified":"2023-12-06T01:00:47.624Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-21615","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21615","licence":"Public domain","modified":"2026-06-17T03:35:52.627Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-JENKINS-2021-21615","url":"https://osv.dev/vulnerability/BIT-JENKINS-2021-21615","licence":"Apache-2.0","modified":"2026-09-08T08:47:57.678Z"}],"updatedAt":"2026-11-25T22:57:59.720Z","epss":{"score":0.0091,"percentile":0.61042,"date":"2026-12-01T12:00:22.000Z"}}