All reports
Medium

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

Affected versions

Affected versions
>= 2.264, <= 2.275
Fixed version
2.276
Affected versions
<= 2.263.2
Fixed version
2.263.3
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2021-21615

Probability of exploitation in the next 30 days: 0.91%

FIRST EPSS · 2026-11-22

Description

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.

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

Links

Credits

  • NotMyFault