{"answers":{"affected":"It affects 19 products.","exploited":"There is no known exploitation of CVE-2023-3972 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2023-3972 is a high-severity vulnerability in Redhat Enterprise Linux, published on 1 Nov 2023. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-3972 and fix it if it is affected.\n\nWhat it is: CVE-2023-3972 is a high-severity vulnerability in Redhat Enterprise Linux, published on 1 Nov 2023. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-3972 in the wild and no public exploit code.\n\nAffected product: Redhat Enterprise Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-3972/ (Markdown: https://insights.sbomify.com/CVE-2023-3972/index.md)","id":"CVE-2023-3972","markdown":"https://insights.sbomify.com/CVE-2023-3972/index.md","name":"CVE-2023-3972","record":{"aliases":["GHSA-37f3-8h34-h4xf","RHSA-2023:6264","RHSA-2023:6282","RHSA-2023:6283","RHSA-2023:6284","RHSA-2023:6795","RHSA-2023:6796","RHSA-2023:6798","RHSA-2023:6811"],"analysis":{"component_type":"operating_system","fix_type":"patch","impacts":["code_execution","privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Red Hat Enterprise Linux","requires_auth":"low_privilege","summary":"Local attackers can escalate privileges to root by pre-creating a temporary directory, allowing arbitrary code execution as root after registration.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"enterprise_linux","vendor":"redhat"},{"product":"enterprise_linux_aus","vendor":"redhat"},{"product":"enterprise_linux_desktop","vendor":"redhat"},{"product":"enterprise_linux_eus","vendor":"redhat"},{"product":"enterprise_linux_for_arm_64","vendor":"redhat"},{"product":"enterprise_linux_for_arm_64_eus","vendor":"redhat"},{"product":"enterprise_linux_for_ibm_z_systems","vendor":"redhat"},{"product":"enterprise_linux_for_ibm_z_systems_eus","vendor":"redhat"},{"product":"enterprise_linux_for_power_big_endian","vendor":"redhat"},{"product":"enterprise_linux_for_power_little_endian","vendor":"redhat"},{"product":"enterprise_linux_for_power_little_endian_eus","vendor":"redhat"},{"product":"enterprise_linux_for_scientific_computing","vendor":"redhat"},{"product":"enterprise_linux_server","vendor":"redhat"},{"product":"enterprise_linux_server_aus","vendor":"redhat"},{"product":"enterprise_linux_server_for_power_little_endian_update_services_for_sap_solutions","vendor":"redhat"},{"product":"enterprise_linux_server_tus","vendor":"redhat"},{"product":"enterprise_linux_server_update_services_for_sap_solutions","vendor":"redhat"},{"product":"enterprise_linux_update_services_for_sap_solutions","vendor":"redhat"},{"product":"insights-client","vendor":"redhat"}],"cvss":{"score":7.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-668","name":"Exposure of Resource to Wrong Sphere"},{"id":"CWE-379","name":"Creation of Temporary File in Directory with Insecure Permissions"}],"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).","ecosystems":["Red Hat:enterprise_linux:7::client","Red Hat:enterprise_linux:7::server","Red Hat:enterprise_linux:7::workstation","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:9::appstream","Red Hat:rhel_aus:8.2::appstream","Red Hat:rhel_aus:8.4::appstream","Red Hat:rhel_e4s:8.1::appstream","Red Hat:rhel_e4s:8.2::appstream","Red Hat:rhel_e4s:8.4::appstream","Red Hat:rhel_eus:8.6::appstream","Red Hat:rhel_eus:9.0::appstream","Red Hat:rhel_tus:8.2::appstream","Red Hat:rhel_tus:8.4::appstream"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Insights-client: unsafe handling of temporary files and directories","id":"CVE-2023-3972","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"redhat:enterprise_linux","products":["redhat:enterprise_linux","redhat:enterprise_linux_aus","redhat:enterprise_linux_desktop","redhat:enterprise_linux_eus","redhat:enterprise_linux_for_ibm_z_systems","redhat:enterprise_linux_for_ibm_z_systems_eus","redhat:enterprise_linux_for_power_little_endian","redhat:enterprise_linux_for_power_little_endian_eus","redhat:enterprise_linux_for_scientific_computing","redhat:enterprise_linux_server","redhat:enterprise_linux_server_aus","redhat:enterprise_linux_server_for_power_little_endian_update_services_for_sap_solutions","redhat:enterprise_linux_server_tus"],"type":"privilege_escalation","year":"2023"},"n_packages":14,"n_references":11,"next":{"headline":"Cross-site Scripting (XSS) - Reflected in jgraph/drawio","id":"CVE-2023-3973"},"packages":[{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:3.1.9-1.el7_9"],"introduced":["0"],"last_affected":[],"package":"insights-client","purl":"pkg:rpm/redhat/insights-client","source":"RHSA-2023:6795"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:3.1.9-1.el7_9"],"introduced":["0"],"last_affected":[],"package":"insights-client","purl":"pkg:rpm/redhat/insights-client","source":"RHSA-2023:6795"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:3.1.9-1.el7_9"],"introduced":["0"],"last_affected":[],"package":"insights-client","purl":"pkg:rpm/redhat/insights-client","source":"RHSA-2023:6795"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:3.2.2-1.el8_8"],"introduced":["0"],"last_affected":[],"package":"insights-client","purl":"pkg:rpm/redhat/insights-client","source":"RHSA-2023:6283"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:3.2.2-1.el9_2"],"introduced":["0"],"last_affected":[],"package":"insights-client","purl":"pkg:rpm/redhat/insights-client","source":"RHSA-2023:6282"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:3.2.3-1.el8_2"],"introduced":["0"],"last_affected":[],"package":"insights-client","purl":"pkg:rpm/redhat/insights-client","source":"RHSA-2023:6264"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:3.2.3-1.el8_4"],"introduced":["0"],"last_affected":[],"package":"insights-client","purl":"pkg:rpm/redhat/insights-client","source":"RHSA-2023:6798"},{"ecosystem":"Red Hat:rhel_e4s:8.1::appstream","fixed":["0:3.2.3-1.el8_1"],"introduced":["0"],"last_affected":[],"package":"insights-client","purl":"pkg:rpm/redhat/insights-client","source":"RHSA-2023:6811"},{"ecosystem":"Red Hat:rhel_e4s:8.2::appstream","fixed":["0:3.2.3-1.el8_2"],"introduced":["0"],"last_affected":[],"package":"insights-client","purl":"pkg:rpm/redhat/insights-client","source":"RHSA-2023:6264"},{"ecosystem":"Red Hat:rhel_e4s:8.4::appstream","fixed":["0:3.2.3-1.el8_4"],"introduced":["0"],"last_affected":[],"package":"insights-client","purl":"pkg:rpm/redhat/insights-client","source":"RHSA-2023:6798"},{"ecosystem":"Red Hat:rhel_eus:8.6::appstream","fixed":["0:3.2.2-1.el8_6"],"introduced":["0"],"last_affected":[],"package":"insights-client","purl":"pkg:rpm/redhat/insights-client","source":"RHSA-2023:6284"},{"ecosystem":"Red Hat:rhel_eus:9.0::appstream","fixed":["0:3.2.2-1.el9_0"],"introduced":["0"],"last_affected":[],"package":"insights-client","purl":"pkg:rpm/redhat/insights-client","source":"RHSA-2023:6796"},{"ecosystem":"Red Hat:rhel_tus:8.2::appstream","fixed":["0:3.2.3-1.el8_2"],"introduced":["0"],"last_affected":[],"package":"insights-client","purl":"pkg:rpm/redhat/insights-client","source":"RHSA-2023:6264"},{"ecosystem":"Red Hat:rhel_tus:8.4::appstream","fixed":["0:3.2.3-1.el8_4"],"introduced":["0"],"last_affected":[],"package":"insights-client","purl":"pkg:rpm/redhat/insights-client","source":"RHSA-2023:6798"}],"prev":{"headline":"Controller: html injection in custom login info","id":"CVE-2023-3971"},"products":["Red Hat Enterprise Linux 6","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"],"published":"2023-11-01","related":[{"cvss_score":9.8,"headline":"Red Hat JBoss RichFaces Framework Expression Language Injection","id":"CVE-2018-14667","kev_date_added":"2023-09-28","published":"2018-11-06"},{"cvss_score":9.8,"headline":"Missing fixes for CVE-2021-40438 and CVE-2021-26691 in the versions of httpd, as shipped in Red Hat Enterprise Linux 8.5.0, causes a securit","id":"CVE-2021-20325","kev_date_added":null,"published":"2022-02-18"},{"cvss_score":9.8,"headline":"Memory corruption in libwebp","id":"CVE-2018-25011","kev_date_added":null,"published":"2021-05-21"},{"cvss_score":9.8,"headline":"Other in libwebp","id":"CVE-2018-25014","kev_date_added":null,"published":"2021-05-21"},{"cvss_score":9.8,"headline":"Supply chain in redhat-upgrade-tool","id":"CVE-2014-3585","kev_date_added":null,"published":"2019-11-22"},{"cvss_score":9.3,"headline":"Squid: request/response smuggling in http/1.1 and icap","id":"CVE-2023-46846","kev_date_added":null,"published":"2023-11-03"},{"cvss_score":9.1,"headline":"Memory corruption in libwebp","id":"CVE-2018-25009","kev_date_added":null,"published":"2021-05-21"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-04-06","vendors":["Red Hat"]},"summary":"Local attackers can escalate privileges to root by pre-creating a temporary directory, allowing arbitrary code execution as root after registration.","url":"https://insights.sbomify.com/CVE-2023-3972/"}