CVE-2023-27903
Java vulnerability analysis and mitigation

Overview

Jenkins 2.393 and earlier, LTS 2.375.3 and earlier contains a security vulnerability (CVE-2023-27903) related to insecure file permissions when handling file parameters through the Jenkins CLI. The vulnerability was discovered by Kevin Guerroudj from CloudBees, Inc. and was publicly disclosed on March 8, 2023 (Jenkins Advisory).

Technical details

When triggering a build from the Jenkins CLI, if a file parameter is provided through the CLI's standard input, Jenkins creates a temporary file on the controller. In affected versions, this temporary file is created in the default temporary directory with default permissions for newly created files. The vulnerability has been assigned a CVSS v3.1 base score of 4.4 (Medium) with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N (NVD).

Impact

If the default file permissions are overly permissive, attackers with access to the Jenkins controller file system can read and write the temporary file before it is used in the build. This vulnerability primarily affects operating systems using a shared temporary directory for all users, typically Linux systems. However, the default permissions for newly created files generally only allow attackers to read the temporary file (Jenkins Advisory).

Mitigation and workarounds

The vulnerability has been fixed in Jenkins 2.394, LTS 2.375.4, and LTS 2.387.1, which create temporary files with more restrictive permissions. As a workaround for users unable to immediately update Jenkins, administrators can set a different path as the default temporary directory using the Java system property java.io.tmpdir (Jenkins Advisory).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-68931HIGH8.7
  • JavaJava
  • net.gleske:jervis
NoYesJan 13, 2026
CVE-2025-68703HIGH8.7
  • JavaJava
  • net.gleske:jervis
NoYesJan 13, 2026
CVE-2025-68704HIGH8.2
  • JavaJava
  • net.gleske:jervis
NoYesJan 13, 2026
CVE-2025-66169MEDIUM6.9
  • JavaJava
  • org.apache.camel:camel-neo4j
NoYesJan 14, 2026
CVE-2025-68925MEDIUM6.9
  • JavaJava
  • net.gleske:jervis
NoYesJan 13, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management