{"id":"CVE-2021-21640","aliases":["CVE-2021-21640","GHSA-w2hv-rcqr-2h7r","BIT-JENKINS-2021-21640"],"related":[],"kind":"vulnerability","state":"published","title":"View name validation bypass in Jenkins","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.\n\nThis allows attackers with View/Create permission to create views with invalid or already-used names.\n\nJenkins 2.287, LTS 2.277.2 uses the same submitted value for validation and view creation.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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","source":"nvd"}],"published":"2021-04-07T13:50:14.000Z","modified":"2026-09-08T08:47:57.707Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:N/I:P/A:N","score":4,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-240"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","lastAffected":"2.286","status":"affected"},{"type":"custom","introduced":"unspecified","lastAffected":"LTS 2.277.1","status":"affected"}],"vendor":"Jenkins project","product":"Jenkins","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.277.2"}],"ecosystem":"Maven","package":"org.jenkins-ci.main:jenkins-core","purl":"pkg:maven/org.jenkins-ci.main/jenkins-core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.278","status":"affected","fixed":"2.287"}],"ecosystem":"Maven","package":"org.jenkins-ci.main:jenkins-core","purl":"pkg:maven/org.jenkins-ci.main/jenkins-core","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"2.277.1"},{"status":"affected","lastAffected":"2.286"}],"vendor":"jenkins","product":"jenkins","cpe":"cpe:2.3:a:jenkins:jenkins:*:*:*:*:lts:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.286.1"}],"ecosystem":"Bitnami","package":"jenkins","purl":"pkg:bitnami/jenkins","source":"bitnami"}],"references":[{"url":"https://www.jenkins.io/security/advisory/2021-04-07/#SECURITY-1871","tags":["advisory","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"http://www.openwall.com/lists/oss-security/2021/04/07/2","tags":["advisory","mailing-list","third-party-advisory","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21640","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/jenkinsci/jenkins/commit/42e2c74049ddf5e0aca1fe6aadc7b24fdabb5494","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/jenkinsci/jenkins","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"jenkins","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-21640","url":"https://www.cve.org/CVERecord?id=CVE-2021-21640","licence":"CVE Terms of Use","modified":"2024-08-03T18:16:23.813Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-w2hv-rcqr-2h7r","url":"https://github.com/advisories/GHSA-w2hv-rcqr-2h7r","licence":"CC-BY-4.0","modified":"2024-02-16T08:17:19.692Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-21640","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21640","licence":"Public domain","modified":"2026-06-17T03:35:55.110Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-JENKINS-2021-21640","url":"https://osv.dev/vulnerability/BIT-JENKINS-2021-21640","licence":"Apache-2.0","modified":"2026-09-08T08:47:57.707Z"}],"updatedAt":"2026-11-25T22:58:00.661Z","epss":{"score":0.01905,"percentile":0.80325,"date":"2026-12-01T12:00:22.000Z"}}