CVE-2021-21640: Input Validation

Published Apr 7, 2021
·
Updated

A flaw was found in Jenkins. Due to lack of validation of the newly created view name, an attackers with View/Create permission are allowed to create views with invalid or already-used names.

Other sources

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.

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.

Affected Software

8 affected componentsFixes available
redhat/jenkins<0:2.277.3.1620393611-1.el8
0:2.277.3.1620393611-1.el8
redhat/jenkins<0:2.289.1.1624020353-1.el8
0:2.289.1.1624020353-1.el8
maven/org.jenkins-ci.main:jenkins-core<2.277.2
2.277.2
maven/org.jenkins-ci.main:jenkins-core>=2.278<=2.286
2.287
redhat/jenkins<2.287
2.287
redhat/jenkins LTS<2.277.2
2.277.2
Jenkins Jenkins<=2.277.1
Jenkins Jenkins<=2.286

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/jenkins to a version that resolves this vulnerability.

    Fixed in 0:2.277.3.1620393611-1.el8
  2. Upgrade

    Upgrade redhat/jenkins to a version that resolves this vulnerability.

    Fixed in 0:2.289.1.1624020353-1.el8
  3. Upgrade

    Upgrade maven/org.jenkins-ci.main:jenkins-core to a version that resolves this vulnerability.

    Fixed in 2.277.2
  4. Upgrade

    Upgrade maven/org.jenkins-ci.main:jenkins-core to a version that resolves this vulnerability.

    Fixed in 2.287
  5. Upgrade

    Upgrade redhat/jenkins to a version that resolves this vulnerability.

    Fixed in 2.287
  6. Upgrade

    Upgrade redhat/jenkins LTS to a version that resolves this vulnerability.

    Fixed in 2.277.2

Event History

Apr 7, 2021
CVE Published
12:00 AM
CVE Published
via MITRE·01:50 PM
Data Sourced
via MITRE·01:50 PM
Description
Data Sourced
via Red Hat·05:02 PM
DescriptionSeverityAffected Software
May 24, 2022
Advisory Published
05:46 PM

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the vulnerability ID?

The vulnerability ID is CVE-2021-21640.

2

What is the severity of CVE-2021-21640?

The severity of CVE-2021-21640 is medium (severity value: 4).

3

What is the description of CVE-2021-21640?

CVE-2021-21640 is a vulnerability in Jenkins that allows attackers with View/Create permission to create views with invalid or already-used names due to lack of validation of the newly created view name.

4

How does CVE-2021-21640 affect Jenkins?

CVE-2021-21640 affects Jenkins versions 2.286 and earlier, LTS 2.277.1 and earlier.

5

How can I fix CVE-2021-21640?

To fix CVE-2021-21640, update Jenkins to version 2.287 or LTS 2.277.2 or newer.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203