6.5medium
Incorrect permission checks in Jenkins Matrix Authorization Strategy Plugin may allow accessing some items
- Severity
- 6.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 1.01% (higher than 64% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- jenkins
- Also known as
- GHSA-96jw-3xw4-mq9p
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Jenkins project Jenkins Matrix Authorization Strategy Plugin | from unspecified up to 2.6.5 Not affected: 2.5.2, 2.6.3.1 | CVE List |
| org.jenkins-ci.plugins:matrix-auth (Maven) | before 2.6.6 | GitHub Advisory Database |
| jenkins matrix_authorization_strategy | up to 2.6.5 | NVD |
All scores
| GitHub | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/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 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.
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.
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.
NVD (es)
Una comprobación incorrecta de permiso en Jenkins Matrix Authorization Strategy Plugin versiones 2.6.5 y anteriores, permite a atacantes con permiso Item/Read en elementos anidados acceder a ellos, incluso si no presentan permiso de Item/Read para las carpetas principales
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-21623 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-96jw-3xw4-mq9p changed 2024-02-16 | CC-BY-4.0 |
| NVD | CVE-2021-21623 changed 2026-06-17 | Public domain |