CVE-2024-2905
Medium 6.2No known exploitationFix status unknownRpm-ostree: world-readable /etc/shadow file
Record last updated
CVSS score
6.2
Medium on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
0.3%
Higher than 26% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
None
Not in the KEV catalog
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
Patching and mitigation
- Patch status
- Unknown: no source documents a fix
- 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. Source (opens in a new tab)
- Vendor guidance
- access.redhat.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| Red Hat | Red Hat Enterprise Linux 10 (unaffected) | 0:2025.5-1.el10 | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 8 (status unknown) | Not documented | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 9 (unaffected) | 0:2024.3-3.el9_4 | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 9.2 Extended Update Support (unaffected) | 0:2023.3-2.el9_2 | Not documented | CVE Program |
| Red Hat | Red Hat OpenShift Container Platform 4 (status unknown) | Not documented | Not documented | CVE Program |
Timeline
Disclosure
CVE record published by redhat
Source: CVE Program (opens in a new tab)
Vendor guidance and references
- RHBA-2025:4872 (opens in a new tab)vendor-advisory, x_refsource_redhat
- RHSA-2024:3401 (opens in a new tab)vendor-advisory, x_refsource_redhat, x_transferred
- RHSA-2024:3823 (opens in a new tab)vendor-advisory, x_refsource_redhat, x_transferred
- https://access.redhat.com/security/cve/CVE-2024-2905 (opens in a new tab)vdb-entry, x_refsource_redhat, x_transferred
- RHBZ#2271585 (opens in a new tab)issue-tracking, x_refsource_redhat, x_transferred
- https://github.com/coreos/rpm-ostree/security/advisories/GHSA-2m76-cwhg-7wv6 (opens in a new tab)x_transferred
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GXY3JLZC645RGFTFWSXPCYM2VWUGIDY5/ (opens in a new tab)
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ULCEMTHAQ3GRGL4G2ZQDX43A67P6UXQH/ (opens in a new tab)