Creation of Temporary File in Directory with Incorrect Permissions Affecting insights-client package, versions <0:3.2.3-1.el8_1


Severity

Recommended
0.0
high
0
10

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.27% (19th 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 IDSNYK-RHEL8-INSIGHTSCLIENT-6051268
  • published8 Nov 2023
  • disclosed1 Nov 2023

Introduced: 1 Nov 2023

CVE-2023-3972  (opens in a new tab)
CWE-379  (opens in a new tab)

How to fix?

Upgrade RHEL:8 insights-client to version 0:3.2.3-1.el8_1 or higher.
This issue was patched in RHSA-2023:6811.

NVD Description

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

A vulnerability was found in insights-client. This security issue occurs because of insecure file operations or unsafe handling of temporary files and directories that lead to local privilege escalation. Before the insights-client has been registered on the system by root, an unprivileged local user or attacker could create the /var/tmp/insights-client directory (owning the directory with read, write, and execute permissions) on the system. After the insights-client is registered by root, an attacker could then control the directory content that insights are using by putting malicious scripts into it and executing arbitrary code as root (trivially bypassing SELinux protections because insights processes are allowed to disable SELinux system-wide).

CVSS Base Scores

version 3.1