GitHub Advisoryadvisory · Maven
GHSA-pxgq-gqr9-5gwx Path traversal vulnerability in Jenkins agent names
HIGH
Official page ↗
- Aliases
- CVE-2021-21605
- Ecosystem
- Maven
- Packages
- org.jenkins-ci.main:jenkins-core
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-20, CWE-22
- Reviewed
- 2022-06-23
Affected packages
• Maven org.jenkins-ci.main:jenkins-core: < 2.263.2 → fixed in 2.263.2
• Maven org.jenkins-ci.main:jenkins-core: >= 2.264, < 2.275 → fixed in 2.275
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 `jenkins.model.Nodes.enforceNameRestrictions` to `false`.
Related
Alias · CVE (1)
- CVE-2021-21605 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… vulnerability