{"answers":{"affected":"It affects 9 products.","exploited":"There is no known exploitation of CVE-2023-4641 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2023-4641 is a medium-severity vulnerability in Redhat Enterprise Linux, published on 27 Dec 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-4641 and fix it if it is affected.\n\nWhat it is: CVE-2023-4641 is a medium-severity vulnerability in Redhat Enterprise Linux, published on 27 Dec 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-4641 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-4641/ (Markdown: https://insights.sbomify.com/CVE-2023-4641/index.md)","id":"CVE-2023-4641","markdown":"https://insights.sbomify.com/CVE-2023-4641/index.md","name":"CVE-2023-4641","record":{"aliases":["ALSA-2023:6632","ALSA-2023:7112","AZL-32253","BELL-CVE-2023-4641","CLSA-2024-1719246768","CLSA-2026-1779267466","CLSA-2026-1779352627","CLSA-2026-1779354447","DEBIAN-CVE-2023-4641","ECHO-c16b-48d0-7da6","GHSA-6ggv-mmg2-jf4r","MGASA-2023-0294","OESA-2023-1687","RHSA-2023:6632","RHSA-2023:7112","RHSA-2024:0417","RHSA-2024:2577","SUSE-SU-2023:3591-1","SUSE-SU-2023:4023-1","SUSE-SU-2023:4024-1","SUSE-SU-2023:4025-1","SUSE-SU-2023:4027-1","UBUNTU-CVE-2023-4641","USN-6640-1","openSUSE-SU-2026:10081-1"],"analysis":{"component_type":"operating_system","fix_type":"patch","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Linux password utility","requires_auth":"low_privilege","summary":"An attacker with sufficient access can retrieve a user's password from memory if the second password entry attempt fails during a passwd change.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"codeready_linux_builder","vendor":"redhat"},{"product":"codeready_linux_builder_for_arm64","vendor":"redhat"},{"product":"codeready_linux_builder_for_ibm_z_systems","vendor":"redhat"},{"product":"codeready_linux_builder_for_power_little_endian","vendor":"redhat"},{"product":"enterprise_linux","vendor":"redhat"},{"product":"enterprise_linux_for_arm_64","vendor":"redhat"},{"product":"enterprise_linux_for_ibm_z_systems","vendor":"redhat"},{"product":"enterprise_linux_for_power_little_endian","vendor":"redhat"},{"product":"shadow-utils","vendor":"shadow-maint"}],"cvss":{"score":4.7,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"},{"id":"CWE-303","name":"Incorrect Implementation of Authentication Algorithm"}],"description":"A flaw was found in shadow-utils. When asking for a new password, shadow-utils asks the password twice. If the password fails on the second attempt, shadow-utils fails in cleaning the buffer used to store the first entry. This may allow an attacker with enough access to retrieve the password from the memory.","ecosystems":["AlmaLinux:8","AlmaLinux:9","Red Hat:enterprise_linux:8::baseos","Red Hat:enterprise_linux:8::crb","Red Hat:enterprise_linux:9::baseos","Red Hat:enterprise_linux:9::crb","Red Hat:rhel_eus:8.6::baseos","Red Hat:rhel_eus:8.6::crb","Red Hat:rhel_eus:8.8::baseos","Red Hat:rhel_eus:8.8::crb","SUSE:Enterprise Storage 7","SUSE:Enterprise Storage 7.1","SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","SUSE:Linux Enterprise Micro 5.1","SUSE:Linux Enterprise Micro 5.2","SUSE:Linux Enterprise Micro 5.3","SUSE:Linux Enterprise Micro 5.4","SUSE:Linux Enterprise Module for Basesystem 15 SP4","SUSE:Linux Enterprise Module for Basesystem 15 SP5","SUSE:Linux Enterprise Server 12 SP5","SUSE:Linux Enterprise Server 15 SP1-LTSS","SUSE:Linux Enterprise Server 15 SP2-LTSS","SUSE:Linux Enterprise Server 15 SP3-LTSS","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 15 SP1","SUSE:Linux Enterprise Server for SAP Applications 15 SP2","SUSE:Linux Enterprise Server for SAP Applications 15 SP3","SUSE:Manager Proxy 4.2","SUSE:Manager Server 4.2","openSUSE:Leap 15.4","openSUSE:Leap 15.5","openSUSE:Tumbleweed"],"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":"Shadow-utils: possible password leak during passwd(1) change","id":"CVE-2023-4641","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"redhat:enterprise_linux","products":["redhat:enterprise_linux","redhat:enterprise_linux_for_ibm_z_systems","redhat:enterprise_linux_for_power_little_endian"],"type":"information_disclosure","year":"2023"},"n_packages":67,"n_references":6,"next":{"headline":"kk Star Ratings \u003c 5.4.6 - Rating Tampering via Race Condition","id":"CVE-2023-4642"},"packages":[{"ecosystem":"AlmaLinux:8","fixed":["2:4.6-19.el8"],"introduced":["0"],"last_affected":[],"package":"shadow-utils","purl":"pkg:rpm/almalinux/shadow-utils","source":"ALSA-2023:7112"},{"ecosystem":"AlmaLinux:8","fixed":["2:4.6-19.el8"],"introduced":["0"],"last_affected":[],"package":"shadow-utils-subid","purl":"pkg:rpm/almalinux/shadow-utils-subid","source":"ALSA-2023:7112"},{"ecosystem":"AlmaLinux:8","fixed":["2:4.6-19.el8"],"introduced":["0"],"last_affected":[],"package":"shadow-utils-subid-devel","purl":"pkg:rpm/almalinux/shadow-utils-subid-devel","source":"ALSA-2023:7112"},{"ecosystem":"AlmaLinux:9","fixed":["2:4.9-8.el9"],"introduced":["0"],"last_affected":[],"package":"shadow-utils","purl":"pkg:rpm/almalinux/shadow-utils","source":"ALSA-2023:6632"},{"ecosystem":"AlmaLinux:9","fixed":["2:4.9-8.el9"],"introduced":["0"],"last_affected":[],"package":"shadow-utils-subid","purl":"pkg:rpm/almalinux/shadow-utils-subid","source":"ALSA-2023:6632"},{"ecosystem":"AlmaLinux:9","fixed":["2:4.9-8.el9"],"introduced":["0"],"last_affected":[],"package":"shadow-utils-subid-devel","purl":"pkg:rpm/almalinux/shadow-utils-subid-devel","source":"ALSA-2023:6632"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["2:4.6-19.el8"],"introduced":["0"],"last_affected":[],"package":"shadow-utils","purl":"pkg:rpm/redhat/shadow-utils","source":"RHSA-2023:7112"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["2:4.6-19.el8"],"introduced":["0"],"last_affected":[],"package":"shadow-utils-debuginfo","purl":"pkg:rpm/redhat/shadow-utils-debuginfo","source":"RHSA-2023:7112"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["2:4.6-19.el8"],"introduced":["0"],"last_affected":[],"package":"shadow-utils-debugsource","purl":"pkg:rpm/redhat/shadow-utils-debugsource","source":"RHSA-2023:7112"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["2:4.6-19.el8"],"introduced":["0"],"last_affected":[],"package":"shadow-utils-subid","purl":"pkg:rpm/redhat/shadow-utils-subid","source":"RHSA-2023:7112"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["2:4.6-19.el8"],"introduced":["0"],"last_affected":[],"package":"shadow-utils-subid-debuginfo","purl":"pkg:rpm/redhat/shadow-utils-subid-debuginfo","source":"RHSA-2023:7112"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["2:4.6-19.el8"],"introduced":["0"],"last_affected":[],"package":"shadow-utils-debuginfo","purl":"pkg:rpm/redhat/shadow-utils-debuginfo","source":"RHSA-2023:7112"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["2:4.6-19.el8"],"introduced":["0"],"last_affected":[],"package":"shadow-utils-debugsource","purl":"pkg:rpm/redhat/shadow-utils-debugsource","source":"RHSA-2023:7112"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["2:4.6-19.el8"],"introduced":["0"],"last_affected":[],"package":"shadow-utils-subid-debuginfo","purl":"pkg:rpm/redhat/shadow-utils-subid-debuginfo","source":"RHSA-2023:7112"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["2:4.6-19.el8"],"introduced":["0"],"last_affected":[],"package":"shadow-utils-subid-devel","purl":"pkg:rpm/redhat/shadow-utils-subid-devel","source":"RHSA-2023:7112"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["2:4.9-8.el9"],"introduced":["0"],"last_affected":[],"package":"shadow-utils","purl":"pkg:rpm/redhat/shadow-utils","source":"RHSA-2023:6632"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["2:4.9-8.el9"],"introduced":["0"],"last_affected":[],"package":"shadow-utils-debuginfo","purl":"pkg:rpm/redhat/shadow-utils-debuginfo","source":"RHSA-2023:6632"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["2:4.9-8.el9"],"introduced":["0"],"last_affected":[],"package":"shadow-utils-debugsource","purl":"pkg:rpm/redhat/shadow-utils-debugsource","source":"RHSA-2023:6632"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["2:4.9-8.el9"],"introduced":["0"],"last_affected":[],"package":"shadow-utils-subid","purl":"pkg:rpm/redhat/shadow-utils-subid","source":"RHSA-2023:6632"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["2:4.9-8.el9"],"introduced":["0"],"last_affected":[],"package":"shadow-utils-subid-debuginfo","purl":"pkg:rpm/redhat/shadow-utils-subid-debuginfo","source":"RHSA-2023:6632"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["2:4.9-8.el9"],"introduced":["0"],"last_affected":[],"package":"shadow-utils-debuginfo","purl":"pkg:rpm/redhat/shadow-utils-debuginfo","source":"RHSA-2023:6632"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["2:4.9-8.el9"],"introduced":["0"],"last_affected":[],"package":"shadow-utils-debugsource","purl":"pkg:rpm/redhat/shadow-utils-debugsource","source":"RHSA-2023:6632"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["2:4.9-8.el9"],"introduced":["0"],"last_affected":[],"package":"shadow-utils-subid-debuginfo","purl":"pkg:rpm/redhat/shadow-utils-subid-debuginfo","source":"RHSA-2023:6632"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["2:4.9-8.el9"],"introduced":["0"],"last_affected":[],"package":"shadow-utils-subid-devel","purl":"pkg:rpm/redhat/shadow-utils-subid-devel","source":"RHSA-2023:6632"},{"ecosystem":"Red Hat:rhel_eus:8.6::baseos","fixed":["2:4.6-17.el8_6"],"introduced":["0"],"last_affected":[],"package":"shadow-utils","purl":"pkg:rpm/redhat/shadow-utils","source":"RHSA-2024:0417"},{"ecosystem":"Red Hat:rhel_eus:8.6::baseos","fixed":["2:4.6-17.el8_6"],"introduced":["0"],"last_affected":[],"package":"shadow-utils-debuginfo","purl":"pkg:rpm/redhat/shadow-utils-debuginfo","source":"RHSA-2024:0417"},{"ecosystem":"Red Hat:rhel_eus:8.6::baseos","fixed":["2:4.6-17.el8_6"],"introduced":["0"],"last_affected":[],"package":"shadow-utils-debugsource","purl":"pkg:rpm/redhat/shadow-utils-debugsource","source":"RHSA-2024:0417"},{"ecosystem":"Red Hat:rhel_eus:8.6::baseos","fixed":["2:4.6-17.el8_6"],"introduced":["0"],"last_affected":[],"package":"shadow-utils-subid","purl":"pkg:rpm/redhat/shadow-utils-subid","source":"RHSA-2024:0417"},{"ecosystem":"Red Hat:rhel_eus:8.6::baseos","fixed":["2:4.6-17.el8_6"],"introduced":["0"],"last_affected":[],"package":"shadow-utils-subid-debuginfo","purl":"pkg:rpm/redhat/shadow-utils-subid-debuginfo","source":"RHSA-2024:0417"},{"ecosystem":"Red Hat:rhel_eus:8.6::crb","fixed":["2:4.6-17.el8_6"],"introduced":["0"],"last_affected":[],"package":"shadow-utils-debuginfo","purl":"pkg:rpm/redhat/shadow-utils-debuginfo","source":"RHSA-2024:0417"},{"ecosystem":"Red Hat:rhel_eus:8.6::crb","fixed":["2:4.6-17.el8_6"],"introduced":["0"],"last_affected":[],"package":"shadow-utils-debugsource","purl":"pkg:rpm/redhat/shadow-utils-debugsource","source":"RHSA-2024:0417"},{"ecosystem":"Red Hat:rhel_eus:8.6::crb","fixed":["2:4.6-17.el8_6"],"introduced":["0"],"last_affected":[],"package":"shadow-utils-subid-debuginfo","purl":"pkg:rpm/redhat/shadow-utils-subid-debuginfo","source":"RHSA-2024:0417"},{"ecosystem":"Red Hat:rhel_eus:8.6::crb","fixed":["2:4.6-17.el8_6"],"introduced":["0"],"last_affected":[],"package":"shadow-utils-subid-devel","purl":"pkg:rpm/redhat/shadow-utils-subid-devel","source":"RHSA-2024:0417"},{"ecosystem":"Red Hat:rhel_eus:8.8::baseos","fixed":["2:4.6-17.el8_8.2"],"introduced":["0"],"last_affected":[],"package":"shadow-utils","purl":"pkg:rpm/redhat/shadow-utils","source":"RHSA-2024:2577"},{"ecosystem":"Red Hat:rhel_eus:8.8::baseos","fixed":["2:4.6-17.el8_8.2"],"introduced":["0"],"last_affected":[],"package":"shadow-utils-debuginfo","purl":"pkg:rpm/redhat/shadow-utils-debuginfo","source":"RHSA-2024:2577"},{"ecosystem":"Red Hat:rhel_eus:8.8::baseos","fixed":["2:4.6-17.el8_8.2"],"introduced":["0"],"last_affected":[],"package":"shadow-utils-debugsource","purl":"pkg:rpm/redhat/shadow-utils-debugsource","source":"RHSA-2024:2577"},{"ecosystem":"Red Hat:rhel_eus:8.8::baseos","fixed":["2:4.6-17.el8_8.2"],"introduced":["0"],"last_affected":[],"package":"shadow-utils-subid","purl":"pkg:rpm/redhat/shadow-utils-subid","source":"RHSA-2024:2577"},{"ecosystem":"Red Hat:rhel_eus:8.8::baseos","fixed":["2:4.6-17.el8_8.2"],"introduced":["0"],"last_affected":[],"package":"shadow-utils-subid-debuginfo","purl":"pkg:rpm/redhat/shadow-utils-subid-debuginfo","source":"RHSA-2024:2577"},{"ecosystem":"Red Hat:rhel_eus:8.8::crb","fixed":["2:4.6-17.el8_8.2"],"introduced":["0"],"last_affected":[],"package":"shadow-utils-debuginfo","purl":"pkg:rpm/redhat/shadow-utils-debuginfo","source":"RHSA-2024:2577"},{"ecosystem":"Red Hat:rhel_eus:8.8::crb","fixed":["2:4.6-17.el8_8.2"],"introduced":["0"],"last_affected":[],"package":"shadow-utils-debugsource","purl":"pkg:rpm/redhat/shadow-utils-debugsource","source":"RHSA-2024:2577"}],"prev":{"headline":"Set Logging Level Without Authentication","id":"CVE-2023-4640"},"products":["Red Hat Enterprise Linux 6","Red Hat Enterprise Linux 7","Red Hat Enterprise Linux 8","Red Hat Enterprise Linux 8.6 Extended Update Support","Red Hat Enterprise Linux 8.8 Extended Update Support","Red Hat Enterprise Linux 9"],"published":"2023-12-27","related":[{"cvss_score":8.8,"headline":"WebKitGTK Memory Corruption","id":"CVE-2019-8720","kev_date_added":"2022-05-23","published":"2023-03-06"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"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":"2025-11-03","vendors":["Red Hat"]},"summary":"An attacker with sufficient access can retrieve a user's password from memory if the second password entry attempt fails during a passwd change.","url":"https://insights.sbomify.com/CVE-2023-4641/"}