GHSA-cj6r-8pxj-5jv6
Incorrect Permission Preservation in Jenkins Core
Quick fix
GHSA-cj6r-8pxj-5jv6 — org.jenkins-ci.main:jenkins-core: upgrade to the fixed version with the command below.
# pom.xml: bump <version>2.387.1</version> for org.jenkins-ci.main:jenkins-coreDetails
Jenkins uses temporary directories adjacent to workspace directories, usually with the @tmp name suffix, to store temporary files related to the build. In pipelines, these temporary directories are adjacent to the current working directory when operating in a subdirectory of the automatically allocated workspace. Jenkins-controlled processes, like SCMs, may store credentials in these directories.
Jenkins 2.393 and earlier, LTS 2.375.3 and earlier, and prior to LTS 2.387.1 shows these temporary directories when viewing job workspaces, which allows attackers with Item/Workspace permission to access their contents.
Jenkins 2.394, LTS 2.375.4, and LTS 2.387.1 does not list these temporary directories in job workspaces.
As a workaround, do not grant Item/Workspace permission to users who lack Item/Configure permission, if you’re concerned about this issue but unable to immediately update Jenkins.
Are you affected?
Enter the version of the package you're using.
Affected packages
2.376Fixed in: 2.387.1# pom.xml: bump <version>2.387.1</version> for org.jenkins-ci.main:jenkins-core0Fixed in: 2.375.4# pom.xml: bump <version>2.375.4</version> for org.jenkins-ci.main:jenkins-core2.388Fixed in: 2.394# pom.xml: bump <version>2.394</version> for org.jenkins-ci.main:jenkins-coreReferences
- https://nvd.nist.gov/vuln/detail/CVE-2023-27902[ADVISORY]
- https://github.com/jenkinsci/jenkins/commit/80452662b31ac6c9f4418cffae1af6af4daf479a[WEB]
- https://github.com/CVEProject/cvelist/blob/master/2023/27xxx/CVE-2023-27902.json[WEB]
- https://www.jenkins.io/security/advisory/2023-03-08/#SECURITY-1807[WEB]