cve.bz

CVE-2024-2905

6.2 mediumEPSS 0.3%Fix available

Medium (6.2). EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

6.2 medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 26th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-04-25. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-732 Incorrect Permission Assignment for Critical Resource
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • Red Hat Red Hat Enterprise Linux 10: fixed in 0:2025.5-1.el10
  • Red Hat Red Hat Enterprise Linux 9: fixed in 0:2024.3-3.el9_4
  • Red Hat Red Hat Enterprise Linux 9.2 Extended Update Support: fixed in 0:2023.3-2.el9_2
  • Red Hat, AlmaLinux, Azure Linux: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2024-2905 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-2905?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-2905?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-2905 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 100:2025.5-1.el10
Red Hat Enterprise Linux 90:2024.3-3.el9_4
Red Hat Enterprise Linux 9.2 Extended Update Support0:2023.3-2.el9_2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Red Hatenterprise_linux:9::appstreamrpm-ostree, rpm-ostree-libs, rpm-ostree-debuginfo and 2 more0:2024.3-3.el9_4RHSA-2024:3823
Red Hatenterprise_linux:10.0rpm-ostree, rpm-ostree-libs, rpm-ostree-debuginfo and 2 more0:2025.5-1.el10RHBA-2025:4872
Red Hatrhel_eus:9.2::appstreamrpm-ostree, rpm-ostree-libs, rpm-ostree-debuginfo and 2 more0:2023.3-2.el9_2RHSA-2024:3401
AlmaLinux9rpm-ostree, rpm-ostree-libs2024.3-3.el9_4ALSA-2024:3823
Azure Linux3rpm-ostree2024.4-3AZL-42310

From the distributions' data via OSV.dev: Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability lets local, unconfined applications read the hashed password for all users of the system from those files. To gain further access to the system, those hashed passwords need to be brute-forced to discover the real passwords that may be used to authenticate as a more privileged user on the system, for example over SSH.

On systems with SELinux enabled and in enforcing mode, access to those files is limited to unconfined (usually interactive) users, unconfined systemd services and privileged containers. Confined daemons, users and containers are not able to access them.

Only OpenShift clusters installed on OCP version 4.14 and later are affected.

OpenShift Clusters installed on previous OCP releases or updated to 4.14 and later are not affected, because /etc/shadow is usually “locally modified” and the local version remains.

Clusters with no passwords set for any users (i.e. only SSH keys were used; the OpenShift default) are not impacted by this vulnerability even though it is present on the node.

Red Hat's mitigation

If you need to apply the fix immediately, you can run the following commands, using credentials that have administrator access to an OpenShift cluster:

# List current permissions for all nodes

for node in $( oc get nodes -oname) ; do echo $node ; oc debug $node -- bash -c "ls -alhZ /host/etc/*shadow*"; done

# Set correct permissions

for node in $( oc get nodes -oname) ; do echo $node ; oc debug $node -- chmod --verbose 0000 /host/etc/shadow /host/etc/gshadow /host/etc/shadow- /host/etc/gshadow-; done

As a precaution, we recommend rotating all user credentials stored in those files.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10rpm-ostree-0:2025.5-1.el10Fixed 2025-05-13RHBA-2025:4872
Red Hat Enterprise Linux 9rpm-ostree-0:2024.3-3.el9_4Fixed 2024-06-11RHSA-2024:3823
Red Hat Enterprise Linux 9.2 Extended Update Supportrpm-ostree-0:2023.3-2.el9_2Fixed 2024-05-28RHSA-2024:3401
Red Hat Enterprise Linux 8rpm-ostreeNot affected
Red Hat OpenShift Container Platform 4rpm-ostreeNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-2905.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-732 (11).

References

Check your stackJSON