CVE-2021-21623: Medium severity Jenkins Matrix Authorization Strategy Jenkins vulnerability
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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/jenkinsto a version that resolves this vulnerability.Fixed in 0:2.289.1.1624020353-1.el8 - Upgrade
Upgrade
maven/org.jenkins-ci.plugins:matrix-authto a version that resolves this vulnerability.Fixed in 2.6.6 - Upgrade
Upgrade
redhat/matrix-authto a version that resolves this vulnerability.Fixed in 2.6.6 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.6.6 - 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
Frequently Asked Questions
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.
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.
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.
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.
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.