CVE & CISA-KEV Catalog

CVE-2023-4641

MEDIUM
4.7
CVSS v3
NVD

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.

How to fix

Remediation Available
shadowDebian
Fixed in:1:4.8.1-1+deb11u1CVE-2023-4641
Fixed in:1:4.13+dfsg1-1+deb12u1CVE-2023-4641
Fixed in:1:4.13+dfsg1-2CVE-2023-4641
Fixed in:1:4.13+dfsg1-2CVE-2023-4641
shadow-utilsRocky
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
shadow-utilsRed Hat / RHEL
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
shadow-utils-debuginfoRed Hat / RHEL
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
shadow-utils-debuginfoRocky
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
shadow-utils-debugsourceRocky
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
shadow-utils-debugsourceRed Hat / RHEL
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
shadow-utils-subidRed Hat / RHEL
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
shadow-utils-subidRocky
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
shadow-utils-subid-debuginfoRocky
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
shadow-utils-subid-debuginfoRed Hat / RHEL
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
shadow-utils-subid-develRocky
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
shadow-utils-subid-develRed Hat / RHEL
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-19.el8RHSA-2023:7112
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.6-17.el8_6RHSA-2024:0417
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
Fixed in:2:4.9-8.el9RHSA-2023:6632
libsubid-devUbuntu
Fixed in:1:4.13+dfsg1-1ubuntu1.1USN-6640-1
libsubid4Ubuntu
Fixed in:1:4.13+dfsg1-1ubuntu1.1USN-6640-1
loginUbuntu
Fixed in:1:4.1.5.1-1ubuntu9.5+esm4USN-6640-1
Fixed in:1:4.2-3.1ubuntu5.5+esm4USN-6640-1
Fixed in:1:4.5-1ubuntu2.5+esm1USN-6640-1
Fixed in:1:4.8.1-1ubuntu5.20.04.5USN-6640-1
Fixed in:1:4.8.1-2ubuntu2.2USN-6640-1
Fixed in:1:4.13+dfsg1-1ubuntu1.1USN-6640-1
passwdUbuntu
Fixed in:1:4.1.5.1-1ubuntu9.5+esm4USN-6640-1
Fixed in:1:4.2-3.1ubuntu5.5+esm4USN-6640-1
Fixed in:1:4.5-1ubuntu2.5+esm1USN-6640-1
Fixed in:1:4.8.1-1ubuntu5.20.04.5USN-6640-1
Fixed in:1:4.8.1-2ubuntu2.2USN-6640-1
Fixed in:1:4.13+dfsg1-1ubuntu1.1USN-6640-1
shadowUbuntu
Fixed in:1:4.1.5.1-1ubuntu9.5+esm4USN-6640-1
Fixed in:1:4.2-3.1ubuntu5.5+esm4USN-6640-1
Fixed in:1:4.5-1ubuntu2.5+esm1USN-6640-1
Fixed in:1:4.8.1-1ubuntu5.20.04.5USN-6640-1
Fixed in:1:4.8.1-2ubuntu2.2USN-6640-1
Fixed in:1:4.13+dfsg1-1ubuntu1.1USN-6640-1
uidmapUbuntu
Fixed in:1:4.1.5.1-1ubuntu9.5+esm4USN-6640-1
Fixed in:1:4.2-3.1ubuntu5.5+esm4USN-6640-1
Fixed in:1:4.5-1ubuntu2.5+esm1USN-6640-1
Fixed in:1:4.8.1-1ubuntu5.20.04.5USN-6640-1
Fixed in:1:4.8.1-2ubuntu2.2USN-6640-1
Fixed in:1:4.13+dfsg1-1ubuntu1.1USN-6640-1

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityHigh
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityNone
AvailabilityNone

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N

Exploit Intelligence

0.26%probability of exploitation in 30 days
17thpercentile

Low risk: more likely to be exploited than 17% of all known CVEs.

References

Related Vulnerabilities

Other CWE-303 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2024-7593Critical9.8100%KEV-
CVE-2023-29357Critical9.8100%KEV + RansomFix
CVE-2020-8863High8.877%--
CVE-2023-32152Medium6.529%--
CVE-2023-32148Medium6.529%--
CVE-2022-20695Critical10.020%--

Common questions

How do I fix CVE-2023-4641?

Published advisories record a fix for 19 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2023-4641 being actively exploited?

Not that we know of. CVE-2023-4641 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 0.26% is the estimated probability that it will be exploited in the next 30 days. That is higher than 17% of all scored CVEs.

How severe is CVE-2023-4641?

CVE-2023-4641 has a CVSS v3 base score of 4.7, rated medium. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2023-4641 affect?

Published advisories record a fix for shadow (Debian), shadow-utils (Rocky), shadow-utils (Red Hat / RHEL), shadow-utils-debuginfo (Red Hat / RHEL), and 15 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2023-4641
CVE-2023-4641 severity badge

Markdown

[![CVE-2023-4641](https://tridentstack.com/cve/badge/CVE-2023-4641.svg)](https://tridentstack.com/cve/CVE-2023-4641)

HTML

<a href="https://tridentstack.com/cve/CVE-2023-4641"><img src="https://tridentstack.com/cve/badge/CVE-2023-4641.svg" alt="CVE-2023-4641"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

See how it worksStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-11-03.