GHSA-pxgq-gqr9-5gwx
Path traversal vulnerability in Jenkins agent names
At a glance
- Published
- Updated
- CVE
- CVE-2021-21605
- Aliases
- BIT-jenkins-2021-21605
- CVSS_V3
- CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Description
Jenkins 2.274 and earlier, LTS 2.263.1 and earlier allows users with Agent/Configure permission to choose agent names that cause Jenkins to override unrelated `config.xml` files. If the global `config.xml` file is replaced, Jenkins will start up with unsafe legacy defaults after a restart. Jenkins 2.275, LTS 2.263.2 ensures that agent names are considered valid names for items to prevent this problem. In case of problems, this change can be reverted by setting the [Java system property](https://www.jenkins.io/doc/book/managing/system-properties/) `jenkins.model.Nodes.enforceNameRestrictions` to `false`.
Affected packages
| Package | Versions |
|---|---|
| Maven · org.jenkins-ci.main:jenkins-core | introduced 0, fixed 2.263.2 |
| Maven · org.jenkins-ci.main:jenkins-core | introduced 2.264, fixed 2.275 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-21605 ADVISORY
- https://github.com/jenkinsci/jenkins/commit/b19b34db4b24b163d4edc53ccb84f41a3589cb08 WEB
- https://github.com/jenkinsci/jenkins PACKAGE
- https://www.jenkins.io/security/advisory/2021-01-13/#SECURITY-2021 WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — GitHub Advisory Database |