Loading HuntDB...

GHSA-qxp6-27gw-99cj

GitHub Security Advisory

Time-of-check Time-of-use (TOCTOU) Race Condition in Jenkins

✓ GitHub Reviewed MODERATE Has CVE

Advisory Details

Due to a time-of-check to time-of-use (TOCTOU) race condition, the file browser for workspaces, archived artifacts, and `$JENKINS_HOME/userContent/` follows symbolic links to locations outside the directory being browsed in Jenkins 2.275 and LTS 2.263.2.

This allows attackers with Job/Workspace permission and the ability to control workspace contents, e.g., with Job/Configure permission or the ability to change SCM contents, to create symbolic links that allow them to access files outside workspaces using the workspace browser.

This issue is caused by an incorrectly applied fix for SECURITY-1452 / CVE-2021-21602 in the [2021-01-13 security advisory](https://www.jenkins.io/security/advisory/2021-01-13/#SECURITY-1452).

Jenkins 2.276, LTS 2.263.3 no longer differentiates the check and the use of symlinks in workspace browsers.

Affected Packages

Maven org.jenkins-ci.main:jenkins-core
Affected versions: 0 (fixed in 2.263.3)
Maven org.jenkins-ci.main:jenkins-core
Affected versions: 2.264 (fixed in 2.276)

Related CVEs

Key Information

GHSA ID
GHSA-qxp6-27gw-99cj
Published
May 24, 2022 5:40 PM
Last Modified
December 13, 2022 3:58 PM
CVSS Score
5.0 /10
Primary Ecosystem
Maven
Primary Package
org.jenkins-ci.main:jenkins-core
GitHub Reviewed
✓ Yes

Dataset

Last updated: August 24, 2025 6:28 AM

Data from GitHub Advisory Database. This information is provided for research and educational purposes.