---
title: "CVE-2023-4641"
canonical_url: "https://pkgseek.com/security/CVE-2023-4641"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "medium"
---

# CVE-2023-4641

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.

CVE-2023-4641 is rated MEDIUM (5.5), with 14 indexed affected package builds across 4 distributions.

- **Severity / Score**: MEDIUM (5.5)
- **Affected builds**: 14
- **Affected distros**: 4
- **Distros with fixed_in**: Alibaba Cloud Linux, Oracle Linux, Red Hat Enterprise Linux, Ubuntu

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Alibaba Cloud Linux | 3 | shadow-utils | 2:4.6-17.0.1.al8 | 2:4.6-19.0.1.al8 |
| Alibaba Cloud Linux | 3 | shadow-utils-doc | 2:4.6-17.0.1.al8 | 2:4.6-19.0.1.al8 |
| Alibaba Cloud Linux | 3 | shadow-utils-subid | 2:4.6-17.0.1.al8 | 2:4.6-19.0.1.al8 |
| Alibaba Cloud Linux | 3 | shadow-utils-subid-devel | 2:4.6-17.0.1.al8 | 2:4.6-19.0.1.al8 |
| Oracle Linux | 8 | shadow-utils | 2:4.6-17.el8 | 2:4.6-19.el8 |
| Oracle Linux | 8 | shadow-utils-subid | 2:4.6-17.el8 | 2:4.6-19.el8 |
| Oracle Linux | 9 | shadow-utils | 2:4.9-6.el9 | 2:4.9-8.el9 |
| Oracle Linux | 9 | shadow-utils-subid | 2:4.9-6.el9 | 2:4.9-8.el9 |
| Red Hat Enterprise Linux | 9.8 | shadow-utils | 2:4.9-6.el9 | 2:4.9-8.el9 |
| Red Hat Enterprise Linux | 9.8 | shadow-utils-subid | 2:4.9-6.el9 | 2:4.9-8.el9 |
| Ubuntu | focal | login | 1:4.8.1-1ubuntu5 | 1:4.8.1-1ubuntu5.20.04.5 |
| Ubuntu | focal | passwd | 1:4.8.1-1ubuntu5 | 1:4.8.1-1ubuntu5.20.04.5 |
| Ubuntu | jammy | login | 1:4.8.1-2ubuntu2 | 1:4.8.1-2ubuntu2.2 |
| Ubuntu | jammy | passwd | 1:4.8.1-2ubuntu2 | 1:4.8.1-2ubuntu2.2 |
