CVE-2023-27899: High severity jenkins lts vulnerability
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
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the vulnerability ID?
The vulnerability ID is CVE-2023-27899.
What is the severity of CVE-2023-27899?
The severity of CVE-2023-27899 is high.
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.
How can I fix CVE-2023-27899?
To fix CVE-2023-27899, update Jenkins to version 2.394 or above.
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).