CVE-2021-21640
MEDIUM 4.3CVSS 3.1View name validation bypass in Jenkins
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.
- Published
- 7 Apr 2021
- Last modified
- 17 Jun 2026
- Assigned by
- jenkinsci-cert@googlegroups.com
- NVD status
- Modified
- Weakness
- CWE-240
- Also known as
- BIT-jenkins-2021-21640GHSA-w2hv-rcqr-2h7r
- Sources
- NVDJSONOSV GHSA-w2hv-rcqr-2h7rJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.0 | AV:N/AC:L/Au:S/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | jenkins | jenkinscpe:2.3:a:jenkins:jenkins:*:*:*:*:lts:*:*:* |
<= 2.277.1 | |
| NVD | jenkins | jenkinscpe:2.3:a:jenkins:jenkins:*:*:*:*:-:*:*:* |
<= 2.286 | |
| OSV | Maven | org.jenkins-ci.main:jenkins-core | < 2.277.2 | 2.277.2 |
| OSV | Maven | org.jenkins-ci.main:jenkins-core | >= 2.278, < 2.287 | 2.287 |
References
- http://www.openwall.com/lists/oss-security/2021/04/07/2 · Mailing List, Third Party Advisory, WEB
- https://www.jenkins.io/security/advisory/2021-04-07/#SECURITY-1871 · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-21640 · ADVISORY
- https://github.com/jenkinsci/jenkins/commit/42e2c74049ddf5e0aca1fe6aadc7b24fdabb5494 · WEB
- https://github.com/jenkinsci/jenkins · PACKAGE
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 7 Apr 2021)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 24 May 2022)