PT-2021-14648 · Jenkins · Jenkins
Wadeck Follonier
·
Published
2021-01-13
·
Updated
2024-03-06
·
CVE-2021-21605
CVSS v3.1
8.0
High
| Vector | AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Jenkins versions 2.274 and earlier, LTS versions 2.263.1 and earlier
Description
The issue allows users with Agent/Configure permission to choose agent names that cause Jenkins to override the global
config.xml file. If the global config.xml file is replaced, Jenkins will start up with unsafe legacy defaults after a restart. This can be exploited by choosing specific agent names.Recommendations
For versions 2.274 and earlier, LTS 2.263.1 and earlier, update to Jenkins 2.275, LTS 2.263.2 to ensure that agent names are considered valid names for items to prevent this problem.
As a temporary workaround, consider setting the Java system property
jenkins.model.Nodes.enforceNameRestrictions to true to enforce name restrictions.
Note that this change can be reverted by setting the Java system property jenkins.model.Nodes.enforceNameRestrictions to false if problems occur.Fix
Path traversal
RCE
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Jenkins