Skip to content
Threat Brief

← All advisories

CVE-2024-2905

Medium 6.2No known exploitationFix status unknown

Rpm-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

VendorProductAffected versionsFixed inPer
Red HatRed Hat Enterprise Linux 10 (unaffected)0:2025.5-1.el10Not documentedCVE Program
Red HatRed Hat Enterprise Linux 8 (status unknown)Not documentedNot documentedCVE Program
Red HatRed Hat Enterprise Linux 9 (unaffected)0:2024.3-3.el9_4Not documentedCVE Program
Red HatRed Hat Enterprise Linux 9.2 Extended Update Support (unaffected)0:2023.3-2.el9_2Not documentedCVE Program
Red HatRed Hat OpenShift Container Platform 4 (status unknown)Not documentedNot documentedCVE Program

Timeline

  1. Disclosure

    CVE record published by redhat

    Source: CVE Program (opens in a new tab)

Vendor guidance and references