CVE-2024-2905
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Summary
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.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
1.2024.4 | affected | ||
| Red Hat | Red Hat Enterprise Linux 10 | 0:2025.5-1.el10 < * | unaffected |
| Red Hat | Red Hat Enterprise Linux 9 | 0:2024.3-3.el9_4 < * | unaffected |
| Red Hat | Red Hat Enterprise Linux 9.2 Extended Update Support | 0:2023.3-2.el9_2 < * | unaffected |
Weaknesses
- CWE-732: Incorrect Permission Assignment for Critical Resource
Workarounds
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.
ADP Enrichment
CISA ADP Vulnrichment
- SSVC:
- Exploitation: none
- Automatable: no
- Technical Impact: partial
CVE Program Container
Additional References
- https://access.redhat.com/errata/RHSA-2024:3401
- https://access.redhat.com/errata/RHSA-2024:3823
- https://access.redhat.com/security/cve/CVE-2024-2905
- https://bugzilla.redhat.com/show_bug.cgi?id=2271585
- https://github.com/coreos/rpm-ostree/security/advisories/GHSA-2m76-cwhg-7wv6
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GXY3JLZC645RGFTFWSXPCYM2VWUGIDY5/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ULCEMTHAQ3GRGL4G2ZQDX43A67P6UXQH/
References
- https://access.redhat.com/errata/RHBA-2025:4872
- https://access.redhat.com/errata/RHSA-2024:3401
- https://access.redhat.com/errata/RHSA-2024:3823
- https://access.redhat.com/security/cve/CVE-2024-2905
- https://bugzilla.redhat.com/show_bug.cgi?id=2271585
- https://github.com/coreos/rpm-ostree/security/advisories/GHSA-2m76-cwhg-7wv6
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.