4.3medium
Arbitrary file existence check in file fingerprints in Jenkins
- Severity
- 4.3medium CVSS:3.1 by NVD
- Exploit likelihood
- 1.23% (higher than 69% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- jenkins
- Also known as
- GHSA-f585-9fw3-rj2mBIT-JENKINS-2021-21606
Description
Jenkins 2.274 and earlier, LTS 2.263.1 and earlier improperly validates the format of a provided fingerprint ID when checking for its existence allowing an attacker to check for the existence of XML files with a short path.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Jenkins project Jenkins | from 2.242 before unspecified, from unspecified up to 2.274, from unspecified up to LTS 2.263.1 | CVE List |
| org.jenkins-ci.main:jenkins-core (Maven) | before 2.263.2, from 2.264 before 2.275 | GitHub Advisory Database |
| jenkins jenkins | up to 2.263.1, up to 2.274 | NVD |
| jenkins (Bitnami) | before 2.274.1 | Bitnami Vulnerability Database |
All scores
| GitHub | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| NVD | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| NVD | 4.0medium CVSS:2.0 | AV:N/AC:L/Au:S/C:P/I:N/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
What each source says
CVE List
Jenkins 2.274 and earlier, LTS 2.263.1 and earlier improperly validates the format of a provided fingerprint ID when checking for its existence allowing an attacker to check for the existence of XML files with a short path.
GitHub Advisory Database
Jenkins provides a feature for jobs to store and track fingerprints of files used during a build. Jenkins 2.274 and earlier, LTS 2.263.1 and earlier provides a REST API to check where a given fingerprint was used by which builds. This endpoint does not fully validate that the provided fingerprint ID is properly formatted before checking for the XML metadata for that fingerprint on the controller file system.
This allows attackers with Overall/Read permission to check for the existence of XML files on the controller file system where the relative path can be constructed as 32 characters.
Jenkins 2.275, LTS 2.263.2 validates that a fingerprint ID is properly formatted before checking for its existence.
NVD (es)
Jenkins versiones 2.274 y anteriores, LTS versiones 2.263.1 y anteriores, comprueban inapropiadamente el formato de una identificación de huella digital proporcionada al comprobar su existencia, permitiendo a un atacante comprobar la existencia de archivos XML con una ruta corta.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-21606 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-f585-9fw3-rj2m changed 2024-02-16 | CC-BY-4.0 |
| NVD | CVE-2021-21606 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-JENKINS-2021-21606 changed 2026-09-08 | Apache-2.0 |