GHSA-rm4m-39fj-288c

Suggest an improvement
Source
https://github.com/advisories/GHSA-rm4m-39fj-288c
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-rm4m-39fj-288c/GHSA-rm4m-39fj-288c.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-rm4m-39fj-288c
Aliases
Published
2022-05-24T17:44:48Z
Modified
2024-01-02T05:51:58.870739Z
Severity
  • 4.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N CVSS Calculator
Summary
Incorrect permission checks in Jenkins Role-based 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.

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.

Database specific
{
    "nvd_published_at": "2021-03-18T14:15:00Z",
    "cwe_ids": [
        "CWE-863"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2022-12-14T16:28:15Z"
}
References

Affected packages

Maven / org.jenkins-ci.plugins:role-strategy

Package

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

Affected ranges

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

Affected versions

1.*

1.1.2
1.1.3

2.*

2.1.0
2.2.0
2.3.0
2.3.1
2.3.2
2.4.0
2.5.0
2.5.1
2.6.0
2.6.1
2.7.0
2.8.0
2.8.1
2.8.2
2.9.0
2.10
2.11
2.12
2.13
2.14
2.15
2.16

3.*

3.0
3.1

Database specific

{
    "last_known_affected_version_range": "<= 3.1"
}