4.3medium
Improper handling of equivalent directory names on Windows in Jenkins
- Severity
- 4.3medium CVSS:3.1 by NVD
- Exploit likelihood
- 1.00% (higher than 63% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- jenkins
- Also known as
- GHSA-6q4g-84f3-mw74BIT-JENKINS-2021-21682
Description
Jenkins 2.314 and earlier, LTS 2.303.1 and earlier accepts names of jobs and other entities with a trailing dot character, potentially replacing the configuration and data of other entities on Windows.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Jenkins project Jenkins | from unspecified up to 2.314, from unspecified up to LTS 2.303.1 | CVE List |
| org.jenkins-ci.main:jenkins-core (Maven) | from 2.304 before 2.315, before 2.303.2 | GitHub Advisory Database |
| jenkins jenkins | up to 2.303.1, up to 2.314 | NVD |
| jenkins (Bitnami) | before 2.314.1 | Bitnami Vulnerability Database |
All scores
| GitHub | 6.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| NVD | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
| NVD | 4.0medium CVSS:2.0 | AV:N/AC:L/Au:S/C:N/I:P/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
What each source says
CVE List
Jenkins 2.314 and earlier, LTS 2.303.1 and earlier accepts names of jobs and other entities with a trailing dot character, potentially replacing the configuration and data of other entities on Windows.
GitHub Advisory Database
Jenkins stores jobs and other entities on disk using their name shown on the UI as file and folder names.
On Windows, when specifying a file or folder with a trailing dot character (example.), the file or folder will be treated as if that character was not present (example). As both are legal names for jobs and other entities in Jenkins 2.314 and earlier, LTS 2.303.1 and earlier, this could allow users with the appropriate permissions to change or replace configurations of jobs and other entities.
Jenkins 2.315, LTS 2.303.2 does not allow names of jobs and other entities to end with a dot character.
NVD (es)
Jenkins versiones 2.314 y anteriores, LTS versiones 2.303.1 y anteriores, aceptan nombres de trabajos y otras entidades con un carácter de punto al final, reemplazando potencialmente la configuración y los datos de otras entidades en Windows
References
| https://www.jenkins.io/security/advisory/2021-10-06/#SECURITY-2424 | advisory, vendor-advisory, web | |
| http://www.openwall.com/lists/oss-security/2021/10/06/1 | advisory, mailing-list, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-21682 | advisory, web | |
| https://github.com/jenkinsci/jenkins/commit/c2c2b59071265aea07f88d5e95297c0a433921c3 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-21682 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-6q4g-84f3-mw74 changed 2024-02-16 | CC-BY-4.0 |
| NVD | CVE-2021-21682 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-JENKINS-2021-21682 changed 2026-09-08 | Apache-2.0 |