Vulnerability · Published Dec 27, 2023 · Assigned by redhat

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

Medium 4.7

In plain English

A medium-severity security flaw in shadow-utils. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 17% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.7Medium
Exploit odds (30 days)0.3%top 82.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8shadow-utils2:4.6-19.el8ALSA-2023:7112
AlmaLinux:9shadow-utils2:4.9-8.el9ALSA-2023:6632
AlmaLinux:8shadow-utils-subid2:4.6-19.el8ALSA-2023:7112
AlmaLinux:9shadow-utils-subid2:4.9-8.el9ALSA-2023:6632
AlmaLinux:8shadow-utils-subid-devel2:4.6-19.el8ALSA-2023:7112
AlmaLinux:9shadow-utils-subid-devel2:4.9-8.el9ALSA-2023:6632
Debian:12shadow1:4.13+dfsg1-1+deb12u1DEBIAN-CVE-2023-4641
Debian:13shadow1:4.13+dfsg1-2DEBIAN-CVE-2023-4641
Debian:14shadow1:4.13+dfsg1-2DEBIAN-CVE-2023-4641
Ubuntu:22.04:LTSshadow1:4.8.1-2ubuntu2.2USN-6640-1
Ubuntu:22.04:LTSshadow1:4.8.1-2ubuntu2.2UBUNTU-CVE-2023-4641

Affected products (as reported)

Weakness: CWE-303 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N

References