cve.bz

CVE-2023-4641 Improper Authentication

5.5 mediumEPSS 0.3%Fix available

Medium (5.5). EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 17th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2024-01-02. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-287 Improper Authentication
CWE-303 Incorrect Implementation of Authentication Algorithm
OWASP Top 10
A07:2025 Authentication Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

  • Red Hat Red Hat Enterprise Linux 8: fixed in 2:4.6-19.el8
  • Red Hat Red Hat Enterprise Linux 8.6 Extended Update Support: fixed in 2:4.6-17.el8_6
  • Red Hat Red Hat Enterprise Linux 8.8 Extended Update Support: fixed in 2:4.6-17.el8_8.2
  • Red Hat Red Hat Enterprise Linux 9: fixed in 2:4.9-8.el9
  • Debian, Ubuntu, Red Hat, SUSE, openSUSE, AlmaLinux, Azure Linux, Alpaquita: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2023-4641 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-4641?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-4641?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-4641 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 82:4.6-19.el8
Red Hat Enterprise Linux 8.6 Extended Update Support2:4.6-17.el8_6
Red Hat Enterprise Linux 8.8 Extended Update Support2:4.6-17.el8_8.2
Red Hat Enterprise Linux 92:4.9-8.el9

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11shadow1:4.8.1-1+deb11u1DLA-4130-1
Debian12shadow1:4.13+dfsg1-1+deb12u1DEBIAN-CVE-2023-4641
Debian13, 14shadow1:4.13+dfsg1-2DEBIAN-CVE-2023-4641
Ubuntu20.04:LTSshadow1:4.8.1-1ubuntu5.20.04.5UBUNTU-CVE-2023-4641 USN-6640-1
Ubuntu22.04:LTSshadow1:4.8.1-2ubuntu2.2UBUNTU-CVE-2023-4641 USN-6640-1
UbuntuPro:14.04:LTSshadow1:4.1.5.1-1ubuntu9.5+esm4UBUNTU-CVE-2023-4641 USN-6640-1
UbuntuPro:16.04:LTSshadow1:4.2-3.1ubuntu5.5+esm4UBUNTU-CVE-2023-4641 USN-6640-1
UbuntuPro:18.04:LTSshadow1:4.5-1ubuntu2.5+esm1UBUNTU-CVE-2023-4641 USN-6640-1
Red Hatenterprise_linux:8::baseosshadow-utils, shadow-utils-subid, shadow-utils-debuginfo and 2 more2:4.6-19.el8RHSA-2023:7112
Red Hatenterprise_linux:8::crbshadow-utils-debuginfo, shadow-utils-debugsource, shadow-utils-subid-devel and 1 more2:4.6-19.el8RHSA-2023:7112
Red Hatenterprise_linux:9::baseosshadow-utils, shadow-utils-subid, shadow-utils-debuginfo and 2 more2:4.9-8.el9RHSA-2023:6632
Red Hatenterprise_linux:9::crbshadow-utils-debuginfo, shadow-utils-debugsource, shadow-utils-subid-devel and 1 more2:4.9-8.el9RHSA-2023:6632
Red Hatrhel_eus:8.6::baseosshadow-utils, shadow-utils-subid, shadow-utils-debuginfo and 2 more2:4.6-17.el8_6RHSA-2024:0417
Red Hatrhel_eus:8.6::crbshadow-utils-debuginfo, shadow-utils-debugsource, shadow-utils-subid-devel and 1 more2:4.6-17.el8_6RHSA-2024:0417
Red Hatrhel_eus:8.8::baseosshadow-utils, shadow-utils-subid, shadow-utils-debuginfo and 2 more2:4.6-17.el8_8.2RHSA-2024:2577
Red Hatrhel_eus:8.8::crbshadow-utils-debuginfo, shadow-utils-debugsource, shadow-utils-subid-devel and 1 more2:4.6-17.el8_8.2RHSA-2024:2577
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 4 moreshadow4.6-150100.3.11.1SUSE-SU-2023:4025-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-ESPOS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 6 moreshadow4.8.1-150300.4.12.1SUSE-SU-2023:4027-1
SUSELinux Enterprise Micro 5.3, Linux Enterprise Module for Basesystem 15 SP4, Linux Enterprise Module for Basesystem 15 SP5shadow4.8.1-150400.10.12.1SUSE-SU-2023:4024-1
SUSELinux Enterprise Micro 5.4shadow4.8.1-150400.3.3.1SUSE-SU-2023:3591-1
SUSELinux Enterprise Micro 5.5shadow4.8.1-150500.3.3.1SUSE-SU-2024:1007-1 SUSE-SU-2024:1007-2
SUSELinux Enterprise Module for Basesystem 15 SP7shadow4.17.2-150600.17.18.1SUSE-RU-2026:1228-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5shadow4.2.1-36.6.1SUSE-SU-2023:4023-1
openSUSELeap 15.4, Leap 15.5shadow4.8.1-150400.10.12.1SUSE-SU-2023:4024-1
openSUSELeap 15.6shadow4.17.2-150600.17.18.1SUSE-RU-2026:1228-1
openSUSETumbleweedshadow4.19.2-2.1openSUSE-SU-2026:10081-1
AlmaLinux8shadow-utils, shadow-utils-subid, shadow-utils-subid-devel2:4.6-19.el8ALSA-2023:7112
AlmaLinux9shadow-utils, shadow-utils-subid, shadow-utils-subid-devel2:4.9-8.el9ALSA-2023:6632
Azure Linux2shadow-utils4.9-14AZL-32253
Alpaquita23shadow4.13-r1BELL-CVE-2023-4641
Alpaquitastreamshadow4.14.2-r0BELL-CVE-2023-4641

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Low.

Red Hat's statement

This vulnerability is classified as low severity despite of confidentiality is high because it requires an attacker to have elevated access privileges to exploit the issue, an attacker must already have significant access to the system to retrieve the password from memory. Additionally, the issue is limited to specific scenarios where a password attempt fails, which reduces its overall risk.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8shadow-utils-2:4.6-19.el8Fixed 2023-11-14RHSA-2023:7112
Red Hat Enterprise Linux 8.6 Extended Update Supportshadow-utils-2:4.6-17.el8_6Fixed 2024-01-25RHSA-2024:0417
Red Hat Enterprise Linux 8.8 Extended Update Supportshadow-utils-2:4.6-17.el8_8.2Fixed 2024-04-30RHSA-2024:2577
Red Hat Enterprise Linux 9shadow-utils-2:4.9-8.el9Fixed 2023-11-07RHSA-2023:6632
Red Hat Enterprise Linux 6shadow-utilsOut of support scope
Red Hat Enterprise Linux 7shadow-utilsOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-4641.

Attack patterns (CAPEC)

  • CAPEC-90 Reflection Attack in Authentication Protocol Likelihood: High · Severity: High
  • CAPEC-22 Exploiting Trust in Client Likelihood: High · Severity: High
  • CAPEC-57 Utilizing REST's Trust in the System Resource to Obtain Sensitive Data Likelihood: Medium · Severity: Very High
  • CAPEC-94 Adversary in the Middle (AiTM) Likelihood: High · Severity: Very High
  • CAPEC-114 Authentication Abuse Severity: Medium
  • CAPEC-115 Authentication Bypass Severity: Medium
  • CAPEC-151 Identity Spoofing Likelihood: Medium · Severity: Medium
  • CAPEC-194 Fake the Source of Data Severity: Medium
  • CAPEC-593 Session Hijacking Likelihood: High · Severity: Very High
  • CAPEC-633 Token Impersonation Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-287.

References

Check your stackJSON