GHSA-qxp6-27gw-99cj

Suggest an improvement
Source
https://github.com/advisories/GHSA-qxp6-27gw-99cj
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-qxp6-27gw-99cj/GHSA-qxp6-27gw-99cj.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-qxp6-27gw-99cj
Aliases
Published
2022-05-24T17:40:19Z
Modified
2023-12-06T00:45:46.497727Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
Time-of-check Time-of-use (TOCTOU) Race Condition in Jenkins
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.

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

Database specific
{
    "nvd_published_at": "2021-01-26T18:16:00Z",
    "github_reviewed_at": "2022-06-23T06:50:38Z",
    "severity": "MODERATE",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-367"
    ]
}
References

Affected packages

Maven / org.jenkins-ci.main:jenkins-core

Package

Name
org.jenkins-ci.main:jenkins-core
View open source insights on deps.dev
Purl
pkg:maven/org.jenkins-ci.main/jenkins-core

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.263.3

Database specific

{
    "last_known_affected_version_range": "<= 2.263.2"
}

Maven / org.jenkins-ci.main:jenkins-core

Package

Name
org.jenkins-ci.main:jenkins-core
View open source insights on deps.dev
Purl
pkg:maven/org.jenkins-ci.main/jenkins-core

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.264
Fixed
2.276

Database specific

{
    "last_known_affected_version_range": "<= 2.275"
}