CVE-2023-4641
Alma Linux vulnerability analysis and mitigation

Overview

CVE-2023-4641 is a security vulnerability discovered in shadow-utils, a package that includes programs for managing user and group accounts. The vulnerability was disclosed on December 27, 2023. The flaw affects shadow-utils versions up to (excluding) 4.14.0. When asking for a new password, shadow-utils asks the password twice, and if the password fails on the second attempt, shadow-utils fails in cleaning the buffer used to store the first entry (NVD).

Technical details

The vulnerability occurs in the password change functionality where gpasswd(1) uses agetpass() to get the password twice for confirmation. If the second agetpass() fails, the first password, which has been copied into the 'static' buffer 'pass' via STRFCPY(), isn't properly zeroed out. The vulnerability has been assigned a CVSS v3.1 base score of 5.5 (Medium) with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N (NVD, Red Hat).

Impact

This vulnerability could potentially allow an attacker with sufficient access to retrieve the password from memory. The impact is limited to confidentiality with no effect on integrity or availability. The vulnerability requires local access and low privileges to exploit (NVD).

Mitigation and workarounds

The vulnerability has been fixed in shadow-utils version 4.14.0. Various Linux distributions have released security updates to address this vulnerability. Red Hat has released multiple security advisories (RHSA-2023:6632, RHSA-2023:7112, RHSA-2024:0417, RHSA-2024:2577) to patch affected versions (Red Hat).

Additional resources


SourceThis report was generated using AI

Related Alma Linux vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-24528HIGH7.1
  • KerberosKerberos
  • krb5-pkinit-openssl
NoYesJan 16, 2026
CVE-2025-68973HIGH7
  • NixOSNixOS
  • gnupg2-utils
NoYesDec 28, 2025
CVE-2025-61594LOW2.7
  • RubyRuby
  • ruby-libs
NoYesDec 30, 2025
CVE-2023-54286N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-debug-modules-internal
NoYesDec 30, 2025
CVE-2022-50881N/AN/A
  • Linux KernelLinux Kernel
  • kernel-abi-whitelists
NoYesDec 30, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management