Skip to content

Incorrect Permission Preservation in Jenkins Core

Moderate severity GitHub Reviewed Published Mar 10, 2023 to the GitHub Advisory Database • Updated Jan 4, 2024

Package

maven org.jenkins-ci.main:jenkins-core (Maven)

Affected versions

< 2.375.4
>= 2.376, < 2.387.1
>= 2.388, < 2.394

Patched versions

2.375.4
2.387.1
2.394

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.

References

Published by the National Vulnerability Database Mar 10, 2023
Published to the GitHub Advisory Database Mar 10, 2023
Reviewed Mar 17, 2023
Last updated Jan 4, 2024

Severity

Moderate
4.3
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

Weaknesses

No CWEs

CVE ID

CVE-2023-27902

GHSA ID

GHSA-cj6r-8pxj-5jv6

Source code

No known source code

Credits

Checking history
See something to contribute? Suggest improvements for this vulnerability.