CVE-2024-2905
Rpm-ostree: world-readable /etc/shadow file
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.
Fixes and workarounds
Workaround
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: CNA: redhatAffected products and versions
| Product | Versions | Authority |
|---|---|---|
rpm-ostree
https://github.com/coreos/rpm-ostree |
1.2024.4 (affected)
Other versions: unaffected |
CNA: redhat |
| Red Hat Enterprise Linux 10 Red Hat rpm-ostree
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:2025.5-1.el10; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 9 Red Hat rpm-ostree
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:2024.3-3.el9_4; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 9.2 Extended Update Support Red Hat rpm-ostree
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:2023.3-2.el9_2; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 8 Red Hat rpm-ostree
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: unaffected |
CNA: redhat |
| Red Hat OpenShift Container Platform 4 Red Hat rpm-ostree
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: unaffected |
CNA: redhat |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 3.1 / 6.2 medium |
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N | CNA: redhat |
Exploit evidence
No exploit evidence in collected sources. This is not proof of no exploitation.
References
- https://access.redhat.com/errata/RHBA-2025:4872CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2024:3401CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2024:3823CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2024-2905CNA: redhat · vdb-entry, x_refsource_REDHAT
- https://bugzilla.redhat.com/show_bug.cgi?id=2271585CNA: redhat · issue-tracking, x_refsource_REDHAT
- https://github.com/coreos/rpm-ostree/security/advisories/GHSA-2m76-cwhg-7wv6CNA: redhat
- https://access.redhat.com/errata/RHSA-2024:3401ADP: CVE · vendor-advisory, x_refsource_REDHAT, x_transferred
- https://access.redhat.com/errata/RHSA-2024:3823ADP: CVE · vendor-advisory, x_refsource_REDHAT, x_transferred
- https://access.redhat.com/security/cve/CVE-2024-2905ADP: CVE · vdb-entry, x_refsource_REDHAT, x_transferred
- https://bugzilla.redhat.com/show_bug.cgi?id=2271585ADP: CVE · issue-tracking, x_refsource_REDHAT, x_transferred
- https://github.com/coreos/rpm-ostree/security/advisories/GHSA-2m76-cwhg-7wv6ADP: CVE · x_transferred
- https://lists.fedoraproject.org/archives/list/[email protected]/message/GXY3JLZC645RGFTFWSXPCYM2VWUGIDY5/ADP: CVE
- https://lists.fedoraproject.org/archives/list/[email protected]/message/ULCEMTHAQ3GRGL4G2ZQDX43A67P6UXQH/ADP: CVE
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.