CVE Vulnerabilities

CVE-2023-4641

Incorrect Implementation of Authentication Algorithm

Published: Dec 27, 2023 | Modified: Nov 03, 2025
CVSS 3.x
5.5
MEDIUM
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
CVSS 2.x
RedHat/V2
RedHat/V3
4.7 LOW
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
Ubuntu
LOW
root.io logo minimus.io logo echo.ai logo

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.

Weakness

The requirements for the product dictate the use of an established authentication algorithm, but the implementation of the algorithm is incorrect.

Affected Software

NameVendorStart VersionEnd Version
Shadow-utilsShadow-maint*4.14.0 (excluding)
Red Hat Enterprise Linux 8RedHatshadow-utils-2:4.6-19.el8*
Red Hat Enterprise Linux 8.6 Extended Update SupportRedHatshadow-utils-2:4.6-17.el8_6*
Red Hat Enterprise Linux 8.8 Extended Update SupportRedHatshadow-utils-2:4.6-17.el8_8.2*
Red Hat Enterprise Linux 9RedHatshadow-utils-2:4.9-8.el9*
ShadowUbuntubionic*
ShadowUbuntuesm-infra-legacy/trusty*
ShadowUbuntuesm-infra/bionic*
ShadowUbuntuesm-infra/focal*
ShadowUbuntuesm-infra/xenial*
ShadowUbuntufocal*
ShadowUbuntujammy*
ShadowUbuntulunar*
ShadowUbuntumantic*
ShadowUbuntutrusty*
ShadowUbuntutrusty/esm*
ShadowUbuntuupstream*
ShadowUbuntuxenial*

References