CVE-2024-2905
Alma Linux vulnerability analysis and mitigation

Overview

A security vulnerability (CVE-2024-2905) was discovered in rpm-ostree, where the /etc/shadow file in default builds has the world-readable bit enabled. The vulnerability was first identified on April 25, 2024, affecting rpm-ostree versions starting with v2023.6. The issue impacts new installations of Red Hat Enterprise Linux 9 and Fedora systems (Atomic Desktops, IoT, and CoreOS) version 39 and later (NVD, Red Hat CVE).

Technical details

The vulnerability stems from incorrect permission assignments for critical resources (CWE-732), specifically the /etc/shadow, /etc/shadow-, /etc/gshadow, and /etc/gshadow- files having world-readable permissions. The CVSS v3.1 base score is 6.2 (Medium) with vector CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N, indicating local access required but no privileges needed to exploit (Red Hat CVE, GitHub Advisory).

Impact

This vulnerability allows local, unconfined applications to read the hashed passwords for all users of the system. On systems with SELinux enabled and in enforcing mode, access to these files is limited to unconfined users, unconfined systemd services, and privileged containers. Confined daemons, users, and containers are not affected. Systems that were installed before this vulnerability or use only SSH keys for authentication are not impacted (Red Hat CVE).

Exploitability

The vulnerability requires local access to the system but no special privileges. To gain further system access, an attacker would need to brute-force the hashed passwords to discover the real passwords that could be used for authentication, for example over SSH (Red Hat CVE).

Mitigation and workarounds

The issue has been patched in rpm-ostree version 2024.4. For immediate mitigation on affected systems, administrators can run the following command as root: chmod --verbose 0000 /etc/shadow /etc/gshadow /etc/shadow- /etc/gshadow-. As a precaution, it is recommended to rotate all user credentials stored in these files (GitHub Advisory, Red Hat CVE).

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-2026-74581CRITICAL9.8
  • Linux Kernel logoLinux Kernel
  • linux
NoYesAug 21, 2026
CVE-2026-74580HIGH8.8
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-debug-core
NoYesAug 21, 2026
CVE-2026-74582HIGH7.8
  • Linux Kernel logoLinux Kernel
  • kernel-64k-debug-modules-partner
NoYesAug 21, 2026
CVE-2026-18299HIGH7.8
  • Rocky Linux logoRocky Linux
  • gstreamer1-plugins-good
NoYesAug 20, 2026
CVE-2026-18298HIGH7.8
  • Rocky Linux logoRocky Linux
  • gstreamer1.src
NoYesAug 20, 2026

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