CVE-2023-27899: High severity jenkins lts vulnerability

Published Mar 8, 2023
·
Updated

A flaw was found in Jenkins. Jenkins creates a temporary file when a plugin is uploaded from an administrator’s computer. 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 installed in Jenkins, potentially resulting in arbitrary code execution.

Other sources

Jenkins 2.393 and earlier, LTS 2.375.3 and earlier create a temporary file in the default temporary directory with the default permissions for newly created files when uploading a plugin for installation, potentially allowing attackers with access to the Jenkins controller file system to read and write the file before it is used, potentially resulting in arbitrary code execution.

https://www.jenkins.io/security/advisory/2023-03-08/#SECURITY-2823

Red Hat

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 plugin for installation, potentially allowing attackers with access to the Jenkins controller file system to read and write the file before it is used, potentially resulting in arbitrary code execution.

Jenkins creates a temporary file when a plugin is uploaded from an administrator’s computer.

Jenkins 2.393 and earlier, LTS 2.375.3 and earlier, and prior to LTS 2.387.1 creates this temporary file in the system 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 installed in Jenkins, potentially resulting in arbitrary code execution.

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

10 affected componentsFixes available
redhat/jenkins<0:2.401.1.1686831596-3.el8
0:2.401.1.1686831596-3.el8
redhat/jenkins<0:2.387.1.1680701869-1.el8
0:2.387.1.1680701869-1.el8
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

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID?

The vulnerability ID is CVE-2023-27899.

2

What is the severity of CVE-2023-27899?

The severity of CVE-2023-27899 is high.

3

How does CVE-2023-27899 affect Jenkins?

CVE-2023-27899 affects Jenkins versions 2.393 and earlier, LTS 2.375.3 and earlier, and prior to LTS 2.387.1.

4

How can I fix CVE-2023-27899?

To fix CVE-2023-27899, update Jenkins to version 2.394 or above.

5

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

You can find more information about CVE-2023-27899 at the following links: [CVE-2023-27899](https://www.cve.org/CVERecord?id=CVE-2023-27899), [NIST NVD](https://nvd.nist.gov/vuln/detail/CVE-2023-27899), [Jenkins Security Advisory](https://www.jenkins.io/security/advisory/2023-03-08/#SECURITY-2823), [Red Hat Bugzilla](https://bugzilla.redhat.com/show_bug.cgi?id=2177626), [Red Hat Security Advisory](https://access.redhat.com/errata/RHSA-2023:3663).

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