CVE-2021-21640
JSON

4.3medium

View name validation bypass in Jenkins

Severity
4.3medium CVSS:3.1 by NVD
Exploit likelihood
1.91% (higher than 80% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
jenkins
Also known as
GHSA-w2hv-rcqr-2h7rBIT-JENKINS-2021-21640

Description

Jenkins 2.286 and earlier, LTS 2.277.1 and earlier does not properly check that a newly created view has an allowed name, allowing attackers with View/Create permission to create views with invalid or already-used names.

Affected

Product or packageVersionsReported by
Jenkins project Jenkinsfrom unspecified up to 2.286, from unspecified up to LTS 2.277.1CVE List
org.jenkins-ci.main:jenkins-core (Maven)before 2.277.2, from 2.278 before 2.287GitHub Advisory Database
jenkins jenkinsup to 2.277.1, up to 2.286NVD
jenkins (Bitnami)before 2.286.1Bitnami Vulnerability Database

All scores

GitHub4.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
NVD4.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
NVD4.0medium CVSS:2.0AV:N/AC:L/Au:S/C:N/I:P/A:N
Bitnami Vulnerability Databasemedium rating

Classification

What each source says

CVE List

Jenkins 2.286 and earlier, LTS 2.277.1 and earlier does not properly check that a newly created view has an allowed name, allowing attackers with View/Create permission to create views with invalid or already-used names.

GitHub Advisory Database

Jenkins 2.286 and earlier, LTS 2.277.1 and earlier does not properly check that a newly created view has an allowed name. When a form to create a view is submitted, the name is included twice in the submission. One instance is validated, but the other instance is used to create the value.

This allows attackers with View/Create permission to create views with invalid or already-used names.

Jenkins 2.287, LTS 2.277.2 uses the same submitted value for validation and view creation.

NVD (es)

Jenkins 2.286 y versiones anteriores, LTS versiones 2.277.1 y anteriores, no comprueban apropiadamente a una visualización recién diseñada tener un nombre permitido, permitiendo a atacantes con permiso de View/Create crear visualizaciones con nombres no válidos o ya usados

References

Sources

SourceRecordLicence
CVE ListCVE-2021-21640 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-w2hv-rcqr-2h7r changed 2024-02-16CC-BY-4.0
NVDCVE-2021-21640 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-JENKINS-2021-21640 changed 2026-09-08Apache-2.0