VDB
Sign up
HIGH8.0

GHSA-pxgq-gqr9-5gwx

Path traversal vulnerability in Jenkins agent names

Quick fix

GHSA-pxgq-gqr9-5gwx — org.jenkins-ci.main:jenkins-core: upgrade to the fixed version with the command below.

# pom.xml: bump <version>2.263.2</version> for org.jenkins-ci.main:jenkins-core

Details

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`.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.jenkins-ci.main:jenkins-core
Introduced in: 0Fixed in: 2.263.2
Fix# pom.xml: bump <version>2.263.2</version> for org.jenkins-ci.main:jenkins-core
Maven/org.jenkins-ci.main:jenkins-core
Introduced in: 2.264Fixed in: 2.275
Fix# pom.xml: bump <version>2.275</version> for org.jenkins-ci.main:jenkins-core

References