5.3medium
Time-of-check Time-of-use (TOCTOU) Race Condition in Jenkins
- Severity
- 5.3medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.91% (higher than 61% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- jenkins
- Also known as
- GHSA-qxp6-27gw-99cjBIT-JENKINS-2021-21615
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Jenkins project Jenkins | 2.275, LTS 2.263.2 | CVE List |
| org.jenkins-ci.main:jenkins-core (Maven) | before 2.263.3, from 2.264 before 2.276 | GitHub Advisory Database |
| jenkins jenkins | before 2.263.3, before 2.276 | NVD |
| jenkins (Bitnami) | before 2.276.0 | Bitnami Vulnerability Database |
All scores
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | 3.5low CVSS:2.0 | AV:N/AC:M/Au:S/C:P/I:N/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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.
This 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.
This issue is caused by an incorrectly applied fix for SECURITY-1452 / CVE-2021-21602 in the 2021-01-13 security advisory.
Jenkins 2.276, LTS 2.263.3 no longer differentiates the check and the use of symlinks in workspace browsers.
NVD (es)
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)
Bitnami Vulnerability Database
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.
References
| https://www.jenkins.io/security/advisory/2021-01-26/#SECURITY-2197 | advisory, vendor-advisory, web | |
| http://www.openwall.com/lists/oss-security/2021/01/26/2 | advisory, mailing-list, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-21615 | advisory, web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-21615 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-qxp6-27gw-99cj changed 2023-12-06 | CC-BY-4.0 |
| NVD | CVE-2021-21615 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-JENKINS-2021-21615 changed 2026-09-08 | Apache-2.0 |