CVSS 3.1
6.2 mediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NMedium (6.2). EPSS 0.3% estimated probability of exploitation activity in the next 30 days.
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NExplain 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.
From the CNA's record in the CVE List.
| Product | Fixed in |
|---|---|
| Red Hat Enterprise Linux 10 | 0:2025.5-1.el10 |
| Red Hat Enterprise Linux 9 | 0:2024.3-3.el9_4 |
| Red Hat Enterprise Linux 9.2 Extended Update Support | 0:2023.3-2.el9_2 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Red Hat | enterprise_linux:9::appstream | rpm-ostree, rpm-ostree-libs, rpm-ostree-debuginfo and 2 more | 0:2024.3-3.el9_4 | RHSA-2024:3823 |
| Red Hat | enterprise_linux:10.0 | rpm-ostree, rpm-ostree-libs, rpm-ostree-debuginfo and 2 more | 0:2025.5-1.el10 | RHBA-2025:4872 |
| Red Hat | rhel_eus:9.2::appstream | rpm-ostree, rpm-ostree-libs, rpm-ostree-debuginfo and 2 more | 0:2023.3-2.el9_2 | RHSA-2024:3401 |
| AlmaLinux | 9 | rpm-ostree, rpm-ostree-libs | 2024.3-3.el9_4 | ALSA-2024:3823 |
| Azure Linux | 3 | rpm-ostree | 2024.4-3 | AZL-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 rates this Moderate.
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.
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.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | rpm-ostree-0:2025.5-1.el10 | Fixed 2025-05-13 | RHBA-2025:4872 |
| Red Hat Enterprise Linux 9 | rpm-ostree-0:2024.3-3.el9_4 | Fixed 2024-06-11 | RHSA-2024:3823 |
| Red Hat Enterprise Linux 9.2 Extended Update Support | rpm-ostree-0:2023.3-2.el9_2 | Fixed 2024-05-28 | RHSA-2024:3401 |
| Red Hat Enterprise Linux 8 | rpm-ostree | Not affected | |
| Red Hat OpenShift Container Platform 4 | rpm-ostree | Not 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.
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).