CVE-2021-21623
JSON

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 packageVersionsReported by
Jenkins project Jenkins Matrix Authorization Strategy Pluginfrom 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.6GitHub Advisory Database
jenkins matrix_authorization_strategyup to 2.6.5NVD

All scores

GitHub6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
NVD4.0medium CVSS:2.0AV: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

SourceRecordLicence
CVE ListCVE-2021-21623 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-96jw-3xw4-mq9p changed 2024-02-16CC-BY-4.0
NVDCVE-2021-21623 changed 2026-06-17Public domain