CVE-2023-27903: Medium severity jenkins lts vulnerability

Published Mar 8, 2023
·
Updated

Jenkins 2.393 and earlier, LTS 2.375.3 and earlier creates a temporary file in the default temporary directory with the default permissions for newly created files when uploading a file parameter through the CLI, potentially allowing attackers with access to the Jenkins controller file system to read and write the file before it is used.

Other sources

When triggering a build from the Jenkins CLI, Jenkins creates a temporary file on the controller if a file parameter is provided through the CLI’s standard input.

Jenkins 2.393 and earlier, LTS 2.375.3 and earlier, and , and LTS prior to 2.387.1 creates this temporary file in the default temporary directory with the default permissions for newly created files.

If these permissions are overly permissive, they may allow attackers with access to the Jenkins controller file system to read and write the file before it is used in the build.

This vulnerability only affects operating systems using a shared temporary directory for all users (typically Linux). Additionally, the default permissions for newly created files generally only allows attackers to read the temporary file. Jenkins 2.394, LTS 2.375.4, and LTS 2.387.1 creates the temporary file with more restrictive permissions.

As a workaround, you can set a different path as your default temporary directory using the Java system property java.io.tmpdir, if you’re concerned about this issue but unable to immediately update Jenkins.

Affected Software

8 affected componentsFixes available
maven/org.jenkins-ci.main:jenkins-core>=2.388<2.394
2.394
maven/org.jenkins-ci.main:jenkins-core>=2.376<2.387.1
2.387.1
maven/org.jenkins-ci.main:jenkins-core<2.375.4
2.375.4
redhat/Jenkins<2.394
2.394
redhat/LTS<2.375.4
2.375.4
redhat/LTS<2.387.1
2.387.1
Jenkins Jenkins<2.375.4
Jenkins Jenkins<2.394

Event History

Mar 8, 2023
CVE Published
via MITRE·05:14 PM
Data Sourced
via MITRE·05:14 PM
Description
Mar 10, 2023
Data Sourced
via NVD·09:15 PM
DescriptionSeverityWeaknessAffected Software
Advisory Published
09:30 PM

Frequently Asked Questions

1

What is the vulnerability ID of this Jenkins vulnerability?

The vulnerability ID is CVE-2023-27903.

2

What is the severity rating of CVE-2023-27903?

The severity rating of CVE-2023-27903 is medium with a value of 4.4.

3

How can an attacker exploit CVE-2023-27903?

An attacker with access to the Jenkins controller file system can exploit CVE-2023-27903 by reading temporary files created with default permissions.

4

How can I fix CVE-2023-27903?

To fix CVE-2023-27903, update Jenkins to version 2.394 or later, or LTS to version 2.375.4 or later.

5

Where can I find more information about CVE-2023-27903?

You can find more information about CVE-2023-27903 in the Jenkins security advisory at https://www.jenkins.io/security/advisory/2023-03-08/#SECURITY-3058 and the Red Hat Security Advisory at https://access.redhat.com/errata/RHSA-2023:1655.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203