Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2024-2905: Incorrect Permission Assignment for Critical Resource

0
Medium
VulnerabilityCVE-2024-2905cvecve-2024-2905
Published: Thu Apr 25 2024 (04/25/2024, 17:44:15 UTC)
Source: CVE

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.

AI-Powered Analysis

AILast updated: 11/11/2025, 23:08:29 UTC

Technical Analysis

CVE-2024-2905 identifies a security vulnerability in rpm-ostree, a tool used for managing operating system updates in immutable Linux systems. The issue arises because the /etc/shadow file, which stores hashed user passwords and is critical for system authentication, is set with world-readable permissions in default builds of rpm-ostree version 1.2024.4. Normally, /etc/shadow should be accessible only by privileged users (e.g., root) to protect sensitive authentication credentials. The incorrect permission assignment means that any local user on the system can read the /etc/shadow file, potentially allowing them to obtain password hashes. Although the vulnerability requires local access (attack vector: local), it does not require any privileges or user interaction, making it easier for an attacker with local access to exploit. The CVSS score of 6.2 reflects a medium severity, primarily due to the high confidentiality impact but no impact on integrity or availability. This vulnerability does not currently have known exploits in the wild, but it poses a significant risk if an attacker gains local access, as they could attempt offline password cracking or other credential abuse techniques. The root cause is a misconfiguration in the default file permission settings within rpm-ostree builds, which should be corrected to follow the principle of least privilege. This vulnerability highlights the importance of secure default configurations in system management tools, especially those involved in OS image management and updates.

Potential Impact

For European organizations, the exposure of /etc/shadow with world-readable permissions can lead to serious confidentiality breaches. Attackers with local access could extract password hashes and attempt offline brute-force or dictionary attacks to recover plaintext credentials, potentially leading to privilege escalation and lateral movement within networks. This risk is particularly acute in environments with multiple users or shared systems, such as development servers, testing environments, or multi-tenant infrastructures. Although the vulnerability does not directly affect system integrity or availability, the compromise of authentication credentials can have cascading effects, including unauthorized data access, disruption of services, and compliance violations under regulations like GDPR. Organizations relying on rpm-ostree for system management, especially those using Red Hat-based or Fedora Silverblue-like immutable OS deployments, are at heightened risk. The lack of known exploits in the wild provides a window for proactive mitigation, but the ease of exploitation given local access means that insider threats or attackers who gain initial footholds could leverage this vulnerability effectively.

Mitigation Recommendations

To mitigate CVE-2024-2905, organizations should immediately audit the permissions of the /etc/shadow file on all systems using rpm-ostree version 1.2024.4 or related builds. The file permissions must be corrected to restrict access exclusively to the root user and system processes that require it (typically mode 640 or 600). System administrators should implement automated configuration management checks to enforce correct permissions on sensitive files. Additionally, limiting local user access through strict user account management, disabling unnecessary accounts, and enforcing strong authentication policies will reduce the risk of exploitation. Monitoring and alerting on permission changes to critical files can provide early detection of potential exploitation attempts. Where possible, upgrade to patched versions of rpm-ostree once available from vendors or apply vendor-recommended configuration fixes. Finally, organizations should conduct regular security training to raise awareness about the risks of local privilege escalation and the importance of secure system configurations.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.1
Assigner Short Name
redhat
Date Reserved
2024-03-26T11:53:25.040Z
Cisa Enriched
true
Cvss Version
3.1
State
PUBLISHED

Threat ID: 682d58114d7c5ea9f4b424fa

Added to database: 5/21/2025, 4:35:29 AM

Last enriched: 11/11/2025, 11:08:29 PM

Last updated: 12/2/2025, 4:07:57 PM

Views: 46

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats