Vulnerability · Published Nov 1, 2023 · Assigned by redhat
CVE-2023-3972Insights-client: unsafe handling of temporary files and directories
High 7.8
In plain English
A high-severity security flaw in Red Hat Enterprise Linux 6 from Red Hat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 20% of all known vulnerabilities).
Official 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).
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Red Hat | Red Hat Enterprise Linux 7 | see references |
| Red Hat | Red Hat Enterprise Linux 8 | see references |
| Red Hat | Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions | see references |
| Red Hat | Red Hat Enterprise Linux 8.2 Advanced Update Support | see references |
| Red Hat | Red Hat Enterprise Linux 8.2 Telecommunications Update Service | see references |
| Red Hat | Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions | see references |
| Red Hat | Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | see references |
| Red Hat | Red Hat Enterprise Linux 8.4 Telecommunications Update Service | see references |
| Red Hat | Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions | see references |
| Red Hat | Red Hat Enterprise Linux 8.6 Extended Update Support | see references |
| Red Hat | Red Hat Enterprise Linux 9 | see references |
| Red Hat | Red Hat Enterprise Linux 9.0 Extended Update Support | see references |
| Red Hat | Red Hat Enterprise Linux 6 | see references |
Weakness: CWE-379 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- RHSA-2023:6264 vendor-advisory, x_refsource_REDHAT
- RHSA-2023:6282 vendor-advisory, x_refsource_REDHAT
- RHSA-2023:6283 vendor-advisory, x_refsource_REDHAT
- RHSA-2023:6284 vendor-advisory, x_refsource_REDHAT
- RHSA-2023:6795 vendor-advisory, x_refsource_REDHAT
- RHSA-2023:6796 vendor-advisory, x_refsource_REDHAT
- RHSA-2023:6798 vendor-advisory, x_refsource_REDHAT
- RHSA-2023:6811 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2023-3972 vdb-entry, x_refsource_REDHAT
- RHBZ#2227027 issue-tracking, x_refsource_REDHAT
- https://github.com/RedHatInsights/insights-core/pull/3878