GHSA-96jw-3xw4-mq9p

Suggest an improvement
Source
https://github.com/advisories/GHSA-96jw-3xw4-mq9p
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-96jw-3xw4-mq9p/GHSA-96jw-3xw4-mq9p.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-96jw-3xw4-mq9p
Aliases
Published
2022-05-24T17:44:47Z
Modified
2024-01-02T05:51:38.672817Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
Incorrect permission checks in Jenkins Matrix Authorization Strategy Plugin may allow accessing some items
Details

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.

References

Affected packages

Maven / org.jenkins-ci.plugins:matrix-auth

Package

Name
org.jenkins-ci.plugins:matrix-auth
View open source insights on deps.dev
Purl
pkg:maven/org.jenkins-ci.plugins/matrix-auth

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.6.6

Affected versions

1.*

1.0
1.0.1
1.0.2
1.1
1.2
1.3
1.3.1
1.3.2
1.4
1.5
1.6
1.7

2.*

2.0-beta-1
2.0-beta-2
2.0-beta-3
2.0
2.1
2.1.1
2.2
2.3
2.4
2.4.1
2.4.2
2.5
2.5.1
2.5.2
2.6
2.6.1
2.6.2
2.6.3
2.6.3.1
2.6.4
2.6.5

Database specific

{
    "last_known_affected_version_range": "<= 2.6.5"
}