{"id":"CVE-2023-4641","summary":"Shadow-utils: possible password leak during passwd(1) change","details":"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.","modified":"2026-05-18T05:56:46.085506058Z","published":"2023-12-27T15:43:22.929Z","related":["ALSA-2023:6632","ALSA-2023:7112","SUSE-RU-2026:1228-1","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","SUSE-SU-2024:1007-1","SUSE-SU-2024:1007-2","openSUSE-SU-2026:10081-1"],"database_specific":{"cwe_ids":["CWE-303"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/4xxx/CVE-2023-4641.json","cna_assigner":"redhat"},"references":[{"type":"WEB","url":"https://access.redhat.com/downloads/content/package-browser/"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/04/msg00026.html"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2023:6632"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2023:7112"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:0417"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:2577"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2023-4641"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/4xxx/CVE-2023-4641.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-4641"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2215945"},{"type":"PACKAGE","url":"https://github.com/shadow-maint/shadow"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/shadow-maint/shadow","events":[{"introduced":"0"},{"fixed":"014536f5d55df33fc032d7a14d9f9d975d569722"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"4.14.0"}],"source":"CPE_FIELD","cpe":"cpe:2.3:a:shadow-maint:shadow-utils:*:*:*:*:*:*:*:*"}}],"versions":["4.14.0-rc5","4.14.0-rc4","4.14.0-rc3","4.14.0-rc2","4.14.0-rc1","4.13","4.12.2","4.12.1","4.12","v4.11.1","v4.10","4.10","v4.9","4.9","4.8.1","4.8","4.7","4.6","4.5","4.4","4.3.1","4.3.0","4.2.1"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-4641.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N"}]}