Skip to content
Noroxi
CVE-2023-4641· NVD / CVE Program· CNA redhat

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

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.

MediumCVSS 5.5 · v3.1—No exploit Fix available

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for the hundreds of thousands of vulnerabilities in the database; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help
Published
Dec 27, 2023
Updated
Jun 17, 2026
EPSS
0.3% · 16th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

22

Monitor

Low priority for now.

CVSS
22 / 40 · 5.5 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 0.3%

CISA SSVC decision

Exploitation
none
Automatable
no
Technical impact
total

Vulnrichment: CISA's decision-tree inputs.

CNA vs NVD score

NVD
5.5
CNA · redhat
4.7
0.8 point gap

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

The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.

Affected systems

VendorProduct
shadow-maintshadow-utils
redhatcodeready linux builder
redhatcodeready linux builder for arm64
redhatcodeready linux builder for ibm z systems
redhatcodeready linux builder for power little endian
redhatenterprise linux
redhatenterprise linux for arm 64
redhatenterprise linux for ibm z systems
redhatenterprise linux for power little endian

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • redhat codeready linux builder8.0
  • redhat codeready linux builder9.0
  • redhat codeready linux builder for arm648.0_aarch64
  • redhat codeready linux builder for arm649.0_aarch64
  • redhat codeready linux builder for ibm z systems8.0_s390x
  • redhat codeready linux builder for ibm z systems9.0_s390x
  • redhat codeready linux builder for power little endian8.0_ppc64le
  • redhat codeready linux builder for power little endian9.0_ppc64le
  • redhat enterprise linux8.0
  • redhat enterprise linux9.0
  • redhat enterprise linux for arm 648.0
  • redhat enterprise linux for arm 649.0
  • redhat enterprise linux for ibm z systems8.0_s390x
  • redhat enterprise linux for ibm z systems9.0_s390x
  • redhat enterprise linux for power little endian8.0_ppc64le
  • redhat enterprise linux for power little endian9.0_ppc64le
  • shadow-maint shadow-utilsbefore 4.14.0

Versions reported by the vendor

Affected version ranges reported by the assigning authority (redhat). Independent of NVD's CPE analysis and usually ahead of it.

  • github.com/shadow-maint/shadow shadow-utils

    • 4.14.0-rc1 and laternot affected · semver
  • Red Hat Red Hat Enterprise Linux 6

    • all versionsunknown
  • Red Hat Red Hat Enterprise Linux 7

    • all versionsunknown
  • Red Hat Red Hat Enterprise Linux 8

    • 2:4.6-19.el8 and laternot affected · rpm
  • Red Hat Red Hat Enterprise Linux 8.6 Extended Update Support

    • 2:4.6-17.el8_6 and laternot affected · rpm
  • Red Hat Red Hat Enterprise Linux 8.8 Extended Update Support

    • 2:4.6-17.el8_8.2 and laternot affected · rpm
  • Red Hat Red Hat Enterprise Linux 9

    • 2:4.9-8.el9 and laternot affected · rpm

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
AlmaLinux:8shadow-utilsbefore 2:4.6-19.el82:4.6-19.el8
AlmaLinux:8shadow-utils-subidbefore 2:4.6-19.el82:4.6-19.el8
AlmaLinux:8shadow-utils-subid-develbefore 2:4.6-19.el82:4.6-19.el8
AlmaLinux:9shadow-utilsbefore 2:4.9-8.el92:4.9-8.el9
AlmaLinux:9shadow-utils-subidbefore 2:4.9-8.el92:4.9-8.el9
AlmaLinux:9shadow-utils-subid-develbefore 2:4.9-8.el92:4.9-8.el9
Debian:11shadowbefore 1:4.8.1-1+deb11u11:4.8.1-1+deb11u1
Debian:12shadowbefore 1:4.13+dfsg1-1+deb12u11:4.13+dfsg1-1+deb12u1
Debian:13shadowbefore 1:4.13+dfsg1-21:4.13+dfsg1-2
openSUSE:Tumbleweedshadowbefore 4.19.2-2.14.19.2-2.1
Red Hat:enterprise_linux:8::baseosshadow-utilsbefore 2:4.6-19.el82:4.6-19.el8
Red Hat:enterprise_linux:8::baseosshadow-utils-debuginfobefore 2:4.6-19.el82:4.6-19.el8
Red Hat:enterprise_linux:8::baseosshadow-utils-debugsourcebefore 2:4.6-19.el82:4.6-19.el8
Red Hat:enterprise_linux:8::baseosshadow-utils-subidbefore 2:4.6-19.el82:4.6-19.el8
Red Hat:enterprise_linux:8::baseosshadow-utils-subid-debuginfobefore 2:4.6-19.el82:4.6-19.el8
Red Hat:enterprise_linux:8::crbshadow-utils-subid-develbefore 2:4.6-19.el82:4.6-19.el8
Red Hat:enterprise_linux:9::baseosshadow-utilsbefore 2:4.9-8.el92:4.9-8.el9
Red Hat:enterprise_linux:9::baseosshadow-utils-debuginfobefore 2:4.9-8.el92:4.9-8.el9
Red Hat:enterprise_linux:9::baseosshadow-utils-debugsourcebefore 2:4.9-8.el92:4.9-8.el9
Red Hat:enterprise_linux:9::baseosshadow-utils-subidbefore 2:4.9-8.el92:4.9-8.el9
Red Hat:enterprise_linux:9::baseosshadow-utils-subid-debuginfobefore 2:4.9-8.el92:4.9-8.el9
Red Hat:enterprise_linux:9::crbshadow-utils-subid-develbefore 2:4.9-8.el92:4.9-8.el9
Red Hat:rhel_eus:8.6::baseosshadow-utilsbefore 2:4.6-17.el8_62:4.6-17.el8_6
Red Hat:rhel_eus:8.6::baseosshadow-utils-debuginfobefore 2:4.6-17.el8_62:4.6-17.el8_6

+19

Other highest-scoring records for the same primary product.

  • CVE-2024-56433shadow-utils (aka shadow) 4.4 through 4.17.0 establishes a default /etc/subuid behavior (e.g., uid 100000 through 165535 for the first user
    14Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
almalinux:shadow-utils2:4.9-8.el9 · AlmaLinux:9Package registry (OSV)
almalinux:shadow-utils-subid2:4.9-8.el9 · AlmaLinux:9Package registry (OSV)
almalinux:shadow-utils-subid-devel2:4.9-8.el9 · AlmaLinux:9Package registry (OSV)
debian:shadow1:4.13+dfsg1-1+deb12u1 · Debian:12Package registry (OSV)
opensuse:shadow4.17.2-150600.17.18.1 · openSUSE:Leap 15.6Package registry (OSV)
red hat:shadow-utils2:4.9-8.el9 · Red Hat:enterprise_linux:9::baseosPackage registry (OSV)
red hat:shadow-utils-debuginfo2:4.9-8.el9 · Red Hat:enterprise_linux:9::baseosPackage registry (OSV)
red hat:shadow-utils-debugsource2:4.9-8.el9 · Red Hat:enterprise_linux:9::baseosPackage registry (OSV)
red hat:shadow-utils-subid2:4.9-8.el9 · Red Hat:enterprise_linux:9::baseosPackage registry (OSV)
red hat:shadow-utils-subid-debuginfo2:4.9-8.el9 · Red Hat:enterprise_linux:9::baseosPackage registry (OSV)
red hat:shadow-utils-subid-devel2:4.9-8.el9 · Red Hat:enterprise_linux:9::crbPackage registry (OSV)
suse:shadow4.17.2-150600.17.18.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP7Package registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Someone with local access to the system can trigger it.
  • A low-privileged account is enough.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
high · data can be read
Integrity
none
Availability
none
Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality impact
High
Integrity impact
None
Availability impact
None

CVSS vector

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

nvd-primary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records