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 package | Versions | Reported by |
|---|---|---|
| Jenkins project Jenkins | from unspecified up to 2.286, from unspecified up to LTS 2.277.1 | CVE List |
| org.jenkins-ci.main:jenkins-core (Maven) | before 2.277.2, from 2.278 before 2.287 | GitHub Advisory Database |
| jenkins jenkins | up to 2.277.1, up to 2.286 | NVD |
| jenkins (Bitnami) | before 2.286.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:N/I:L/A:N |
| 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.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
| https://www.jenkins.io/security/advisory/2021-04-07/#SECURITY-1871 | advisory, vendor-advisory, web | |
| http://www.openwall.com/lists/oss-security/2021/04/07/2 | advisory, mailing-list, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-21640 | advisory, web | |
| https://github.com/jenkinsci/jenkins/commit/42e2c74049ddf5e0aca1fe6aadc7b24fdabb5494 | web | |
| https://github.com/jenkinsci/jenkins | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-21640 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-w2hv-rcqr-2h7r changed 2024-02-16 | CC-BY-4.0 |
| NVD | CVE-2021-21640 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-JENKINS-2021-21640 changed 2026-09-08 | Apache-2.0 |