Creation of Temporary File With Insecure Permissions Affecting jenkins package, versions <0:2.387.1.1680701869-1.el8


Severity

Recommended
critical

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.04% (15th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Creation of Temporary File With Insecure Permissions vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RHEL8-JENKINS-5421559
  • published26 Mar 2023
  • disclosed10 Mar 2023

Introduced: 10 Mar 2023

CVE-2023-27899  (opens in a new tab)
CWE-378  (opens in a new tab)

How to fix?

Upgrade RHEL:8 jenkins to version 0:2.387.1.1680701869-1.el8 or higher.
This issue was patched in RHSA-2023:1655.

NVD Description

Note: Versions mentioned in the description apply only to the upstream jenkins package and not the jenkins package as distributed by RHEL. See How to fix? for RHEL:8 relevant fixed versions and status.

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.

CVSS Scores

version 3.1