CVE-2021-21606
JSON

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 packageVersionsReported by
Jenkins project Jenkinsfrom 2.242 before unspecified, from unspecified up to 2.274, from unspecified up to LTS 2.263.1CVE List
org.jenkins-ci.main:jenkins-core (Maven)before 2.263.2, from 2.264 before 2.275GitHub Advisory Database
jenkins jenkinsup to 2.263.1, up to 2.274NVD
jenkins (Bitnami)before 2.274.1Bitnami Vulnerability Database

All scores

GitHub4.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
NVD4.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
NVD4.0medium CVSS:2.0AV:N/AC:L/Au:S/C:P/I:N/A:N
Bitnami Vulnerability Databasemedium 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

SourceRecordLicence
CVE ListCVE-2021-21606 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-f585-9fw3-rj2m changed 2024-02-16CC-BY-4.0
NVDCVE-2021-21606 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-JENKINS-2021-21606 changed 2026-09-08Apache-2.0