CVE-2021-21623: Medium severity Jenkins Matrix Authorization Strategy Jenkins vulnerability

Published Mar 18, 2021
·
Updated

A flaw was found in Jenkins Matrix Authorization Strategy Plugin. The jenkins plugin does not correctly perform permission checks, as consequences this allows attackers with Item/Read permission on nested items to access them, even if they lack Item/Read permission for parent folders. The highest threat from this vulnerability is to data confidentiality.

Other sources

An incorrect permission check in Jenkins Matrix Authorization Strategy Plugin 2.6.5 and earlier allows attackers with Item/Read permission on nested items to access them, even if they lack Item/Read permission for parent folders.

Items (like jobs) can be organized hierarchically in Jenkins, using the Folders Plugin or something similar. An item is expected to be accessible only if all its ancestors are accessible as well.

Matrix Authorization Strategy Plugin 2.6.5 and earlier does not correctly perform permission checks to determine whether an item should be accessible.

This allows attackers with Item/Read permission on nested items to access them, even if they lack Item/Read permission for parent folders.\n\nMatrix Authorization Strategy Plugin 2.6.6 requires Item/Read permission on parent items to grant Item/Read permission on an individual item.

As a workaround in older releases, do not grant permissions on individual items to users who do not have access to parent items.

In case of problems, the Java system property hudson.security.AuthorizationMatrixProperty.checkParentPermissions can be set to false, completely disabling this fix.

Matrix Authorization Strategy Plugin 2.6.5 and earlier does not correctly perform permission checks to determine whether an item should be accessible. This allows attackers with Item/Read permission on nested items to access them, even if they lack Item/Read permission for parent folders.

References:

https://www.jenkins.io/security/advisory/2021-03-18/

— Red Hat

Affected Software

4 affected componentsFixes available
redhat/jenkins<0:2.289.1.1624020353-1.el8
0:2.289.1.1624020353-1.el8
Jenkins Matrix Authorization Strategy Jenkins<=2.6.5
maven/org.jenkins-ci.plugins:matrix-auth<=2.6.5
2.6.6
redhat/matrix-auth<2.6.6
2.6.6

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.289.1.1624020353-1.el8
  2. Upgrade

    Upgrade maven/org.jenkins-ci.plugins:matrix-auth to a version that resolves this vulnerability.

    Fixed in 2.6.6
  3. Upgrade

    Upgrade redhat/matrix-auth to a version that resolves this vulnerability.

    Fixed in 2.6.6
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.6.6
  5. Configuration

    As a workaround in older releases, avoid granting Item/Read permission on individual items to users who cannot access their parent items.

    Jenkins Matrix Authorization Strategy Plugin Item/Read permissions = Do not grant permissions on individual items to users who do not have access to parent items

Event History

Mar 18, 2021
CVE Published
12:00 AM
CVE Published
via MITRE·01:35 PM
Data Sourced
via MITRE·01:35 PM
Description
May 24, 2022
Advisory Published
05:44 PM

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2021-21623?

CVE-2021-21623 has been classified as a medium severity vulnerability due to improper permission checks in the Jenkins Matrix Authorization Strategy Plugin.

2

How do I fix CVE-2021-21623?

To fix CVE-2021-21623, upgrade the Jenkins Matrix Authorization Strategy Plugin to version 2.6.6 or higher.

3

What are the potential impacts of CVE-2021-21623?

The impact of CVE-2021-21623 allows attackers with Item/Read permission on nested items to access them without having Item/Read permission for parent folders.

4

Which versions are affected by CVE-2021-21623?

CVE-2021-21623 affects versions of Jenkins Matrix Authorization Strategy Plugin up to and including 2.6.5.

5

Is CVE-2021-21623 related to any specific Jenkins installation?

Yes, CVE-2021-21623 specifically impacts installations of Jenkins that use the Matrix Authorization Strategy Plugin.

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