CVE-2021-21624: Medium severity jenkins role-based authorization strategy vulnerability
An incorrect permission check in Jenkins Role-based Authorization Strategy Plugin 3.1 and earlier allows attackers with Item/Read permission on nested items to access them, even if they lack Item/Read permission for parent folders.
Other sources
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.
Role-based Authorization Strategy Plugin 3.1 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.
Role-based Authorization Strategy Plugin 3.1.1 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 com.michelin.cio.hudson.plugins.rolestrategy.RoleMap.checkParentPermissions can be set to false, completely disabling this fix.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2021-21624?
CVE-2021-21624 is considered a medium-severity vulnerability due to the improper permission checks that can lead to unauthorized access to nested items.
How do I fix CVE-2021-21624?
To fix CVE-2021-21624, upgrade the Jenkins Role-based Authorization Strategy Plugin to version 3.1.1 or later.
What causes the vulnerability identified as CVE-2021-21624?
The vulnerability occurs due to an incorrect permission check that allows users with Item/Read permission on nested items to access items in parent folders without proper permission.
What types of items are affected by CVE-2021-21624?
CVE-2021-21624 affects items organized hierarchically in Jenkins, such as jobs and folders.
Is CVE-2021-21624 still exploitable in the latest Jenkins versions?
No, CVE-2021-21624 is not exploitable in the latest versions if the Role-based Authorization Strategy Plugin has been updated to the fixed version.