Insights-client: unsafe handling of temporary files and directories

Summary

CVECVE-2023-3972
StatePUBLISHED
Assignerredhat
Source PriorityCVE Program / NVD first with legacy fallback
Published2023-11-01 16:15:08 UTC
Updated2026-11-07 12:17:33 UTC
DescriptionA 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).

Risk And Classification

Primary CVSS: v3.1 7.8 HIGH from [email protected]

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

EPSS: 0.002710000 probability, percentile 0.196190000 (date 2026-11-08)

Problem Types: CWE-379 | CWE-668 | CWE-379 Creation of Temporary File in Directory with Insecure Permissions | CWE-379 CWE-379 Creation of Temporary File in Directory with Insecure Permissions


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary7.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
3.1[email protected]Secondary7.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
3.1CNACVSS7.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CVSS v3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Redhat Enterprise Linux 7.0 All All All
Operating System Redhat Enterprise Linux 8.0 All All All
Operating System Redhat Enterprise Linux 9.0 All All All
Operating System Redhat Enterprise Linux Aus 8.6 All All All
Operating System Redhat Enterprise Linux Desktop 7.0 All All All
Operating System Redhat Enterprise Linux Eus 8.6 All All All
Operating System Redhat Enterprise Linux Eus 8.8 All All All
Operating System Redhat Enterprise Linux Eus 9.0 All All All
Operating System Redhat Enterprise Linux Eus 9.2 All All All
Operating System Redhat Enterprise Linux For Arm 64 8.0 All All All
Operating System Redhat Enterprise Linux For Arm 64 Eus 8.6 All All All
Operating System Redhat Enterprise Linux For Arm 64 Eus 8.8 All All All
Operating System Redhat Enterprise Linux For Arm 64 Eus 9.0 All All All
Operating System Redhat Enterprise Linux For Arm 64 Eus 9.2 All All All
Operating System Redhat Enterprise Linux For Ibm Z Systems 7.0 All All All
Operating System Redhat Enterprise Linux For Ibm Z Systems 8.0 All All All
Operating System Redhat Enterprise Linux For Ibm Z Systems 9.0 All All All
Operating System Redhat Enterprise Linux For Ibm Z Systems Eus 8.6 All All All
Operating System Redhat Enterprise Linux For Ibm Z Systems Eus 8.8 All All All
Operating System Redhat Enterprise Linux For Ibm Z Systems Eus 9.0 All All All
Operating System Redhat Enterprise Linux For Ibm Z Systems Eus 9.2 All All All
Operating System Redhat Enterprise Linux For Power Big Endian 7.0 All All All
Operating System Redhat Enterprise Linux For Power Little Endian 7.0 All All All
Operating System Redhat Enterprise Linux For Power Little Endian 8.0 All All All
Operating System Redhat Enterprise Linux For Power Little Endian 9.0 All All All
Operating System Redhat Enterprise Linux For Power Little Endian Eus 8.6 All All All
Operating System Redhat Enterprise Linux For Power Little Endian Eus 8.8 All All All
Operating System Redhat Enterprise Linux For Power Little Endian Eus 9.2 All All All
Operating System Redhat Enterprise Linux For Scientific Computing 7.0 All All All
Operating System Redhat Enterprise Linux Server 7.0 All All All
Operating System Redhat Enterprise Linux Server Aus 8.2 All All All
Operating System Redhat Enterprise Linux Server Aus 8.4 All All All
Operating System Redhat Enterprise Linux Server Aus 9.2 All All All
Operating System Redhat Enterprise Linux Server For Power Little Endian Update Services For Sap Solutions 8.1 All All All
Operating System Redhat Enterprise Linux Server For Power Little Endian Update Services For Sap Solutions 8.2 All All All
Operating System Redhat Enterprise Linux Server For Power Little Endian Update Services For Sap Solutions 8.4 All All All
Operating System Redhat Enterprise Linux Server For Power Little Endian Update Services For Sap Solutions 8.6 All All All
Operating System Redhat Enterprise Linux Server For Power Little Endian Update Services For Sap Solutions 8.8 All All All
Operating System Redhat Enterprise Linux Server For Power Little Endian Update Services For Sap Solutions 9.0 All All All
Operating System Redhat Enterprise Linux Server For Power Little Endian Update Services For Sap Solutions 9.2 All All All
Operating System Redhat Enterprise Linux Server Tus 8.2 All All All
Operating System Redhat Enterprise Linux Server Tus 8.4 All All All
Operating System Redhat Enterprise Linux Server Tus 8.6 All All All
Operating System Redhat Enterprise Linux Server Tus 8.8 All All All
Operating System Redhat Enterprise Linux Server Update Services For Sap Solutions 9.2 All All All
Operating System Redhat Enterprise Linux Update Services For Sap Solutions 8.1 All All All
Operating System Redhat Enterprise Linux Update Services For Sap Solutions 8.2 All All All
Operating System Redhat Enterprise Linux Update Services For Sap Solutions 8.4 All All All
Operating System Redhat Enterprise Linux Update Services For Sap Solutions 8.6 All All All
Operating System Redhat Enterprise Linux Update Services For Sap Solutions 8.8 All All All
Application Redhat Insights-client All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Red Hat Red Hat Enterprise Linux 7 unaffected 0:3.1.9-1.el7_9 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8 unaffected 0:3.2.2-1.el8_8 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.1 Update Services For SAP Solutions unaffected 0:3.2.3-1.el8_1 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support unaffected 0:3.2.3-1.el8_2 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.2 Telecommunications Update Service unaffected 0:3.2.3-1.el8_2 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.2 Update Services For SAP Solutions unaffected 0:3.2.3-1.el8_2 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support unaffected 0:3.2.3-1.el8_4 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.4 Telecommunications Update Service unaffected 0:3.2.3-1.el8_4 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.4 Update Services For SAP Solutions unaffected 0:3.2.3-1.el8_4 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.6 Extended Update Support unaffected 0:3.2.2-1.el8_6 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9 unaffected 0:3.2.2-1.el9_2 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9.0 Extended Update Support unaffected 0:3.2.2-1.el9_0 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 6 Not specified Not specified

References

ReferenceSourceLinkTags
cve-details af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Vendor Advisory
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Vendor Advisory
feat: improve temp directories by ahitacat · Pull Request #3878 · RedHatInsights/insights-core · GitHub af854a3a-2127-422b-91ae-364da2661108 github.com Patch
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Vendor Advisory
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Vendor Advisory
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Vendor Advisory
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Vendor Advisory
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Vendor Advisory
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Vendor Advisory
Red Hat af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Vendor Advisory
2227027 – (CVE-2023-3972) CVE-2023-3972 insights-client: unsafe handling of temporary files and directories af854a3a-2127-422b-91ae-364da2661108 bugzilla.redhat.com Issue Tracking, Vendor Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

CNA: This issue was discovered by Alasdair Kergon (Red Hat) and Pavel Odvody (Red Hat). (en)

Additional Advisory Data

SourceTimeEvent
CNA2023-07-27T00:00:00.000ZReported to Red Hat.
CNA2023-11-01T11:00:00.000ZMade public.

Workarounds

CNA: Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.

Legacy QID Mappings

  • 242269 Red Hat Update for insights-client (RHSA-2023:6264)
  • 242273 Red Hat Update for insights-client (RHSA-2023:6283)
  • 242274 Red Hat Update for insights-client (RHSA-2023:6284)
  • 242275 Red Hat Update for insights-client (RHSA-2023:6282)
  • 242336 Red Hat Update for insights-client (RHSA-2023:6798)
  • 242341 Red Hat Update for insights-client (RHSA-2023:6795)
  • 242342 Red Hat Update for insights-client (RHSA-2023:6796)
  • 242384 Red Hat Update for insights-client (RHSA-2023:6811)

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report