GHSA-j852-mp82-wv2g

Suggest an improvement
Source
https://github.com/advisories/GHSA-j852-mp82-wv2g
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-j852-mp82-wv2g/GHSA-j852-mp82-wv2g.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-j852-mp82-wv2g
Aliases
Published
2022-05-24T17:19:04Z
Modified
2024-02-16T08:15:35.827087Z
Severity
  • 5.4 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L CVSS Calculator
Summary
Improper permission checks in Jenkins Swarm Plugin
Details

Swarm Plugin adds API endpoints to add or remove agent labels. In Swarm Plugin 3.20 and earlier these only require a global Swarm secret to use, and no regular permission check is performed. This allows users with Agent/Create permission to add or remove labels of any agent.

Swarm Plugin 3.21 requires Agent/Configure permission for the affected agent to these endpoints. It no longer uses the global Swarm secret for these API endpoints.

Database specific
{
    "nvd_published_at": "2020-06-03T13:15:00Z",
    "cwe_ids": [
        "CWE-285"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2022-12-20T22:14:55Z"
}
References

Affected packages

Maven / org.jenkins-ci.plugins:swarm

Package

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

Affected ranges

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

Affected versions

1.*

1.6
1.7
1.8
1.9
1.10
1.11
1.15
1.16
1.17
1.18
1.19
1.20
1.21
1.22
1.23
1.24
1.25
1.26

2.*

2.0
2.1
2.2

3.*

3.3
3.4
3.5
3.6
3.7
3.8
3.9
3.10
3.11
3.12
3.13
3.14
3.15
3.16
3.17
3.18
3.19
3.20