CVE-2021-21605
JSON

8.0high

Path traversal vulnerability in Jenkins agent names

Severity
8.0high CVSS:3.1 by NVD
Exploit likelihood
2.25% (higher than 83% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
jenkins
Also known as
GHSA-pxgq-gqr9-5gwxBIT-JENKINS-2021-21605

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 the global `config.xml` file.

Affected

Product or packageVersionsReported by
Jenkins project Jenkinsfrom unspecified up to 2.274, from unspecified up to LTS 2.263.1CVE List
org.jenkins-ci.main:jenkins-core (Maven)before 2.263.2, from 2.264 before 2.275GitHub Advisory Database
jenkins jenkinsup to 2.263.1, up to 2.274NVD
jenkins (Bitnami)before 2.274.1Bitnami Vulnerability Database

All scores

GitHub8.0high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
NVD8.0high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
NVD6.0medium CVSS:2.0AV:N/AC:M/Au:S/C:P/I:P/A:P
Bitnami Vulnerability Databasehigh rating

Classification

What each source says

CVE List

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 the global `config.xml` file.

GitHub Advisory Database

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.

NVD (es)

Jenkins versiones 2.274 y anteriores, LTS versiones 2.263.1 y anteriores, permite a usuarios con permiso Agent/Configure elegir nombres de agente que causa que Jenkins anule el archivo global "config.xml".

References

Sources

SourceRecordLicence
CVE ListCVE-2021-21605 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-pxgq-gqr9-5gwx changed 2024-02-16CC-BY-4.0
NVDCVE-2021-21605 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-JENKINS-2021-21605 changed 2026-09-08Apache-2.0