CVE-2023-3972

Insights-client: unsafe handling of temporary files and directories

State
Published
Severity
7.8 High
Published
Nov 1, 2023
Updated
Apr 6, 2026
Reserved
Jul 27, 2023

Read the record on cve.org

Description

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).

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:Hredhat

Weaknesses

  • CWE-379 Creation of Temporary File in Directory with Insecure Permissions

Affected Products

ProductVersions
Red Hat Enterprise Linux 7Red Hat
  • 0:3.1.9-1.el7_9 and laterNot affected
Red Hat Enterprise Linux 8Red Hat
  • 0:3.2.2-1.el8_8 and laterNot affected
Red Hat Enterprise Linux 8.1 Update Services for SAP SolutionsRed Hat
  • 0:3.2.3-1.el8_1 and laterNot affected
Red Hat Enterprise Linux 8.2 Advanced Update SupportRed Hat
  • 0:3.2.3-1.el8_2 and laterNot affected
Red Hat Enterprise Linux 8.2 Telecommunications Update ServiceRed Hat
  • 0:3.2.3-1.el8_2 and laterNot affected
Red Hat Enterprise Linux 8.2 Update Services for SAP SolutionsRed Hat
  • 0:3.2.3-1.el8_2 and laterNot affected
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update SupportRed Hat
  • 0:3.2.3-1.el8_4 and laterNot affected
Red Hat Enterprise Linux 8.4 Telecommunications Update ServiceRed Hat
  • 0:3.2.3-1.el8_4 and laterNot affected
Red Hat Enterprise Linux 8.4 Update Services for SAP SolutionsRed Hat
  • 0:3.2.3-1.el8_4 and laterNot affected
Red Hat Enterprise Linux 8.6 Extended Update SupportRed Hat
  • 0:3.2.2-1.el8_6 and laterNot affected
Red Hat Enterprise Linux 9Red Hat
  • 0:3.2.2-1.el9_2 and laterNot affected
Red Hat Enterprise Linux 9.0 Extended Update SupportRed Hat
  • 0:3.2.2-1.el9_0 and laterNot affected
Red Hat Enterprise Linux 6Red Hat

    References

    Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.