MODERATE 4.3

CVE-2023-27902

Incorrect Permission Preservation in Jenkins Core

Description

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.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.jenkins-ci.main » jenkins-core
< 2.375.4>= 2.376, < 2.387.1>= 2.388, < 2.394
2.375.4, 2.387.1, 2.394

Blast radius

1affected artifacts
6,109affected versions
114dependent artifacts (est.)
8,692dependent versions

51% of the dependent artifacts (59) still pull an affected version in their latest release.

DepthDependent versions
Direct
7,460
2 hops
1,024
3 hops
35
4 hops
81
5 hops
26
6 hops
66

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.