# CVE-2023-4641: Shadow-utils: possible password leak during passwd(1) change

- Priority: **Routine**
- Reason: Not severe (CVSS 4.7, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-12-27 · Modified: 2025-11-03
- Aliases: MGASA-2023-0294, 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, RHSA-2023:6632, RHSA-2023:7112, RHSA-2024:0417, RHSA-2024:2577, UBUNTU-CVE-2023-4641, USN-6640-1, DEBIAN-CVE-2023-4641, openSUSE-SU-2026:10081-1
- Record: https://cvemate.com/vulnerability/CVE-2023-4641 · JSON: https://cvemate.com/vulnerability/CVE-2023-4641/json

## Description

```text
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.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- EPSS: 0.256%, percentile 18.337%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 44)

- debian shadow (Debian): \< 1:4.13+dfsg1-1+deb12u1 \| \< 1:4.13+dfsg1-2
- ubuntu shadow (Ubuntu): \< 1:4.1.5.1-1ubuntu9.5+esm4 \| \< 1:4.2-3.1ubuntu5.5+esm4 \| \< 1:4.5-1ubuntu2.5+esm1 \| \< 1:4.8.1-1ubuntu5.20.04.5 \| \< 1:4.8.1-2ubuntu2.2
- mageia shadow-utils (Mageia): \< 4.6-4.2.mga8
- mageia shadow-utils (Mageia): \< 4.13-1.1.mga9
- redhat codeready\_linux\_builder: 8.0 \| 9.0
- redhat codeready\_linux\_builder\_for\_arm64: 8.0\_aarch64 \| 9.0\_aarch64
- redhat codeready\_linux\_builder\_for\_ibm\_z\_systems: 8.0\_s390x \| 9.0\_s390x
- redhat codeready\_linux\_builder\_for\_power\_little\_endian: 8.0\_ppc64le \| 9.0\_ppc64le
- redhat enterprise\_linux: 8.0 \| 9.0
- redhat enterprise\_linux\_for\_arm\_64: 8.0 \| 9.0
- redhat enterprise\_linux\_for\_ibm\_z\_systems: 8.0\_s390x \| 9.0\_s390x
- redhat enterprise\_linux\_for\_power\_little\_endian: 8.0\_ppc64le \| 9.0\_ppc64le
- opensuse shadow&distro=openSUSE Leap 15.4 (openSUSE): \< 4.8.1-150400.10.12.1
- opensuse shadow&distro=openSUSE Leap 15.5 (openSUSE): \< 4.8.1-150400.10.12.1
- opensuse shadow&distro=openSUSE Tumbleweed (openSUSE): \< 4.19.2-2.1
- redhat shadow-utils (Red Hat): \< 2:4.9-8.el9 \| \< 2:4.6-19.el8 \| \< 2:4.6-17.el8\_6 \| \< 2:4.6-17.el8\_8.2
- redhat shadow-utils-debuginfo (Red Hat): \< 2:4.9-8.el9 \| \< 2:4.6-19.el8 \| \< 2:4.6-17.el8\_6 \| \< 2:4.6-17.el8\_8.2
- redhat shadow-utils-debugsource (Red Hat): \< 2:4.9-8.el9 \| \< 2:4.6-19.el8 \| \< 2:4.6-17.el8\_6 \| \< 2:4.6-17.el8\_8.2
- redhat shadow-utils-subid (Red Hat): \< 2:4.9-8.el9 \| \< 2:4.6-19.el8 \| \< 2:4.6-17.el8\_6 \| \< 2:4.6-17.el8\_8.2
- redhat shadow-utils-subid-debuginfo (Red Hat): \< 2:4.9-8.el9 \| \< 2:4.6-19.el8 \| \< 2:4.6-17.el8\_6 \| \< 2:4.6-17.el8\_8.2

## References (first 20 of 33)

- <https://access.redhat.com/errata/RHSA-2023:6632>
- <https://access.redhat.com/errata/RHSA-2023:7112>
- <https://access.redhat.com/errata/RHSA-2024:0417>
- <https://access.redhat.com/errata/RHSA-2024:2577>
- <https://access.redhat.com/security/cve/CVE-2023-4641>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2215945>
- <https://lists.debian.org/debian-lts-announce/2025/04/msg00026.html>
- <https://advisories.mageia.org/MGASA-2023-0294.html>
- <https://bugs.mageia.org/show_bug.cgi?id=32285>
- <https://www.suse.com/support/update/announcement/2023/suse-su-20233591-1/>
- <https://bugzilla.suse.com/1214806>
- <https://www.suse.com/security/cve/CVE-2023-4641>
- <https://www.suse.com/support/update/announcement/2023/suse-su-20234023-1/>
- <https://www.suse.com/support/update/announcement/2023/suse-su-20234024-1/>
- <https://www.suse.com/support/update/announcement/2023/suse-su-20234025-1/>
- <https://www.suse.com/support/update/announcement/2023/suse-su-20234027-1/>
- <https://access.redhat.com/security/updates/classification/#low>
- <https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/9.3_release_notes/index>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2179987>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2179988>

---

Data as of 2026-12-05T03:15:46.945Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
