CVE-2023-3972Insights-client: unsafe handling of temporary files and directories
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).
What to do
Fixed builds are available from Red Hat: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Red Hat Enterprise Linux 9 | insights-client | Fixed | 0:3.2.2-1.el9_2 | RHSA-2023:6282 |
| Red Hat Enterprise Linux 8 | insights-client | Fixed | 0:3.2.2-1.el8_8 | RHSA-2023:6283 |
| Red Hat Enterprise Linux 7 | insights-client | Fixed | 0:3.1.9-1.el7_9 | RHSA-2023:6795 |
| Red Hat Enterprise Linux 6 | insights-client | Will not fix Out of support scope |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions
- Red Hat Enterprise Linux 8.2 Advanced Update Support
- Red Hat Enterprise Linux 8.2 Telecommunications Update Service
- Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions
- Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
- Red Hat Enterprise Linux 8.4 Telecommunications Update Service
- Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions
- Red Hat Enterprise Linux 8.6 Extended Update Support
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux 9.0 Extended Update Support
Workaround: 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.
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2023:6264 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2023:6282 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2023:6283 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2023:6284 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2023:6795 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2023:6796 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2023:6264
- https://access.redhat.com/errata/RHSA-2023:6282
- https://access.redhat.com/errata/RHSA-2023:6283
- https://access.redhat.com/errata/RHSA-2023:6284
- https://access.redhat.com/errata/RHSA-2023:6795
- https://access.redhat.com/errata/RHSA-2023:6796
- https://access.redhat.com/errata/RHSA-2023:6798
- https://access.redhat.com/errata/RHSA-2023:6811
- https://access.redhat.com/security/cve/CVE-2023-3972
- https://bugzilla.redhat.com/show_bug.cgi?id=2227027
- https://github.com/RedHatInsights/insights-core/pull/3878
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.