CVE-2024-2905 Rpm-ostree: world-readable /etc/shadow file

Medium 6.2 Published Updated

Attackers can read the world-readable /etc/shadow file in default rpm-ostree builds, exposing sensitive authentication data.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-2905?

CVE-2024-2905 is a medium-severity vulnerability in Red Hat Enterprise Linux 10, published on 25 Apr 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A security vulnerability has been discovered within rpm-ostree, pertaining to the /etc/shadow file in default builds having the world-readable bit enabled. This issue arises from the default permissions being set at a higher level than recommended, potentially exposing sensitive authentication data to unauthorized access.

Weakness: CWE-732

Which versions are affected by CVE-2024-2905?

Linux distribution packages (17)
rpm-ostree AlmaLinux:9All versions2024.3-3.el9_4
rpm-ostree-libs AlmaLinux:9All versions2024.3-3.el9_4
rpm-ostree Red Hat:enterprise_linux:10.0All versions0:2025.5-1.el10
rpm-ostree-debuginfo Red Hat:enterprise_linux:10.0All versions0:2025.5-1.el10
rpm-ostree-debugsource Red Hat:enterprise_linux:10.0All versions0:2025.5-1.el10
rpm-ostree-libs Red Hat:enterprise_linux:10.0All versions0:2025.5-1.el10
rpm-ostree-libs-debuginfo Red Hat:enterprise_linux:10.0All versions0:2025.5-1.el10
rpm-ostree Red Hat:enterprise_linux:9::appstreamAll versions0:2024.3-3.el9_4
rpm-ostree-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:2024.3-3.el9_4
rpm-ostree-debugsource Red Hat:enterprise_linux:9::appstreamAll versions0:2024.3-3.el9_4
rpm-ostree-libs Red Hat:enterprise_linux:9::appstreamAll versions0:2024.3-3.el9_4
rpm-ostree-libs-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:2024.3-3.el9_4
rpm-ostree Red Hat:rhel_eus:9.2::appstreamAll versions0:2023.3-2.el9_2
rpm-ostree-debuginfo Red Hat:rhel_eus:9.2::appstreamAll versions0:2023.3-2.el9_2
rpm-ostree-debugsource Red Hat:rhel_eus:9.2::appstreamAll versions0:2023.3-2.el9_2
rpm-ostree-libs Red Hat:rhel_eus:9.2::appstreamAll versions0:2023.3-2.el9_2
rpm-ostree-libs-debuginfo Red Hat:rhel_eus:9.2::appstreamAll versions0:2023.3-2.el9_2

How do I fix CVE-2024-2905?

Apply the vendor's patch.

Is CVE-2024-2905 being exploited?

There is no known exploitation of CVE-2024-2905 in the wild and no public exploit code.

Sources

Also known as ALSA-2024:3823, AZL-42310, RHBA-2025:4872, RHSA-2024:3401, RHSA-2024:3823.

Is CVE-2024-2905 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free