4.3medium
Incorrect permission checks in Jenkins Role-based Authorization Strategy Plugin may allow accessing some items
- Severity
- 4.3medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.85% (higher than 59% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- jenkins
- Also known as
- GHSA-rm4m-39fj-288c
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Jenkins project Jenkins Role-based Authorization Strategy Plugin | from unspecified up to 3.1 | CVE List |
| org.jenkins-ci.plugins:role-strategy (Maven) | before 3.1.1 | GitHub Advisory Database |
| jenkins role-based_authorization_strategy | up to 3.1 | NVD |
All scores
| GitHub | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| NVD | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| NVD | 4.0medium CVSS:2.0 | AV:N/AC:L/Au:S/C:P/I:N/A:N |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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.
NVD (es)
Una comprobación incorrecta de permiso en Jenkins Role-based Authorization Strategy Plugin versiones 3.1 y anteriores, permite a atacantes con permiso Item/Read en elementos anidados acceder a ellos, incluso si carecen del permiso Item/Read para carpetas principales
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-21624 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-rm4m-39fj-288c changed 2024-02-16 | CC-BY-4.0 |
| NVD | CVE-2021-21624 changed 2026-06-17 | Public domain |