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
shadow-utilsAmazon
Fixed in:2:4.1.5.1-24.amzn2.0.3
Fixed in:2:4.1.5.1-24.amzn2.0.3
Fixed in:2:4.1.5.1-24.amzn2.0.3
Fixed in:2:4.9-12.amzn2023.0.4
Fixed in:2:4.9-12.amzn2023.0.4
shadow-utils-debuginfoAmazon
Fixed in:2:4.1.5.1-24.amzn2.0.3
Fixed in:2:4.1.5.1-24.amzn2.0.3
Fixed in:2:4.1.5.1-24.amzn2.0.3
Fixed in:2:4.9-12.amzn2023.0.4
Fixed in:2:4.9-12.amzn2023.0.4
shadow-utils-debugsourceAmazon
Fixed in:2:4.9-12.amzn2023.0.4
Fixed in:2:4.9-12.amzn2023.0.4
shadow-utils-subidAmazon
Fixed in:2:4.9-12.amzn2023.0.4
Fixed in:2:4.9-12.amzn2023.0.4
shadow-utils-subid-debuginfoAmazon
Fixed in:2:4.9-12.amzn2023.0.4
Fixed in:2:4.9-12.amzn2023.0.4
shadow-utils-subid-develAmazon
Fixed in:2:4.9-12.amzn2023.0.4
Fixed in:2:4.9-12.amzn2023.0.4
shadowDebian
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_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.6-17.el8_6RHSA-2024:0417
shadow-utilsRed Hat / RHEL
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-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
shadow-utils-debuginfoRed Hat / RHEL
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.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
shadow-utils-debuginfoRocky
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-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
shadow-utils-debugsourceRed Hat / RHEL
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-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
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_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
shadow-utils-subidRed Hat / RHEL
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-19.el8RHSA-2023:7112
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-19.el8RHSA-2023:7112
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_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
shadow-utils-subid-debuginfoRocky
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-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
shadow-utils-subid-debuginfoRed Hat / RHEL
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-19.el8RHSA-2023:7112
Fixed in:2:4.6-17.el8_8.2RHSA-2024:2577
Fixed in:2:4.6-19.el8RHSA-2023:7112
shadow-utils-subid-develRocky
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-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-19.el8RHSA-2023:7112
shadow-utils-subid-develRed Hat / RHEL
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_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
libsubid-devUbuntu
Fixed in:1:4.13+dfsg1-1ubuntu1.1USN-6640-1

This Ubuntu release reached end-of-life on 2024-07-12.

libsubid4Ubuntu
Fixed in:1:4.13+dfsg1-1ubuntu1.1USN-6640-1

This Ubuntu release reached end-of-life on 2024-07-12.

loginUbuntu
Fixed in:1:4.1.5.1-1ubuntu9.5+esm4USN-6640-1

This Ubuntu release reached end-of-life on 2019-04-02.

Fixed in:1:4.2-3.1ubuntu5.5+esm4USN-6640-1

This Ubuntu release reached end-of-life on 2021-04-02.

Fixed in:1:4.5-1ubuntu2.5+esm1USN-6640-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

Fixed in:1:4.8.1-1ubuntu5.20.04.5USN-6640-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

Fixed in:1:4.8.1-2ubuntu2.2USN-6640-1
Fixed in:1:4.13+dfsg1-1ubuntu1.1USN-6640-1

This Ubuntu release reached end-of-life on 2024-07-12.

passwdUbuntu
Fixed in:1:4.1.5.1-1ubuntu9.5+esm4USN-6640-1

This Ubuntu release reached end-of-life on 2019-04-02.

Fixed in:1:4.2-3.1ubuntu5.5+esm4USN-6640-1

This Ubuntu release reached end-of-life on 2021-04-02.

Fixed in:1:4.5-1ubuntu2.5+esm1USN-6640-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

Fixed in:1:4.8.1-1ubuntu5.20.04.5USN-6640-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

Fixed in:1:4.8.1-2ubuntu2.2USN-6640-1
Fixed in:1:4.13+dfsg1-1ubuntu1.1USN-6640-1

This Ubuntu release reached end-of-life on 2024-07-12.

shadowUbuntu
Fixed in:1:4.1.5.1-1ubuntu9.5+esm4USN-6640-1

This Ubuntu release reached end-of-life on 2019-04-02.

Fixed in:1:4.2-3.1ubuntu5.5+esm4USN-6640-1

This Ubuntu release reached end-of-life on 2021-04-02.

Fixed in:1:4.5-1ubuntu2.5+esm1USN-6640-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

Fixed in:1:4.8.1-1ubuntu5.20.04.5USN-6640-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

Fixed in:1:4.8.1-2ubuntu2.2USN-6640-1
Fixed in:1:4.13+dfsg1-1ubuntu1.1USN-6640-1

This Ubuntu release reached end-of-life on 2024-07-12.

uidmapUbuntu
Fixed in:1:4.1.5.1-1ubuntu9.5+esm4USN-6640-1

This Ubuntu release reached end-of-life on 2019-04-02.

Fixed in:1:4.2-3.1ubuntu5.5+esm4USN-6640-1

This Ubuntu release reached end-of-life on 2021-04-02.

Fixed in:1:4.5-1ubuntu2.5+esm1USN-6640-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

Fixed in:1:4.8.1-1ubuntu5.20.04.5USN-6640-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

Fixed in:1:4.8.1-2ubuntu2.2USN-6640-1
Fixed in:1:4.13+dfsg1-1ubuntu1.1USN-6640-1

This Ubuntu release reached end-of-life on 2024-07-12.

This vulnerability affects an unusually large number of packages. The highest-confidence fixes are shown above; the full list is longer. Check the referenced advisories for complete coverage.

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.25%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 25 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.25% 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-utils (Amazon), shadow-utils-debuginfo (Amazon), shadow-utils-debugsource (Amazon), shadow-utils-subid (Amazon), and 21 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>

Check your Linux endpoints for this class of vulnerability

TridentStack Control continuously scans Linux endpoints for known vulnerabilities and deploys the fixes from the same console. 200 endpoints free forever, no credit card.

Patch your fleet freeStart 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 2026-06-17.