Appsecure logo

CVE-2024-45310: Low Vulnerability in Linux Foundation runc

A low-severity vulnerability in runc allows attackers to create empty files or directories in arbitrary locations on the host filesystem. Organizations should address this in their patch cycle to mitigate risks.

LOWCVSS 3.6 · Published September 3, 2024

Not a customer? See how AppSecure simulates real world attacks to protect your infrastructure.

Speak to Experts

CVE-2024-45310 is a low-severity vulnerability affecting runc, a CLI tool for spawning and running containers according to the OCI specification. The vulnerability exists in versions 1.1.13 and earlier, as well as in 1.2.0-rc2 and earlier. This vulnerability allows attackers to create empty files or directories in arbitrary locations on the host filesystem by sharing a volume between two containers and exploiting a race condition with `os.MkdirAll`. While this may lead to the creation of empty files, existing files are not truncated. To exploit this vulnerability, an attacker must have the ability to start containers using a custom volume configuration.

User namespaces are still affected by this vulnerability, but the scope of places where an attacker can create inodes can be significantly reduced. Additionally, sufficiently strict LSM policies such as SELinux or AppArmor could potentially block this attack. Although it is suspected that the standard SELinux policy may restrict the attack's scope, the exact extent of this protection has not been thoroughly analyzed. This vulnerability can be exploited directly through runc as well as through container management tools like Docker and Kubernetes.

The issue has been addressed in runc versions 1.1.14 and 1.2.0-rc3. Workarounds are available, such as using user namespaces, which can significantly restrict this attack. However, unless the root user is remapped to an actual user on the host, an attacker would likely only be able to create inodes in world-writable directories. Additionally, a strict SELinux or AppArmor policy can be applied to further restrict the scope of this vulnerability.

Organizations should prioritize patching immediately to mitigate the risk associated with this vulnerability, as it can lead to unauthorized file creation in sensitive areas of the filesystem.

Vulnerability Details

The official description of this vulnerability states that runc versions prior to 1.1.14 can be exploited to create empty files or directories in arbitrary locations in the host filesystem. The vulnerability is classified under CWE-61 (Improper Restriction of Operations within the Bounds of a Memory Buffer) and CWE-363 (Race Condition in a Critical Section). The CVSS score is 3.6, indicating a low severity level. The attack vector is local, and its exploitation requires user interaction.

Affected products include runc, with the following configurations identified as vulnerable:

CPE Match

Version

cpe:2.3:a:linuxfoundation:runc:*:*:*:*:*:*:*:*

1.1.13 and earlier

cpe:2.3:a:linuxfoundation:runc:1.2.0:rc2:*:*:*:*:*:*

1.2.0-rc2 and earlier

Technical Analysis

The root cause of this vulnerability lies in the way runc handles file and directory creation in conjunction with shared volumes between containers. Specifically, a race condition in the `os.MkdirAll` function can be exploited by an attacker to create directories or files in locations they should not have access to. The attack vector is local, which means the attacker must have access to the system where the containers are running. The attack complexity is low, with no privileges required, although user interaction is necessary to initiate the container.

The impact on confidentiality is non-existent, as the attacker cannot access sensitive data. However, the integrity impact is low; while the attacker can create empty files or directories, they cannot modify existing files. There is no availability impact associated with this vulnerability.

Risk & Impact Analysis

Risk to organizations includes potential unauthorized creation of files or directories in sensitive locations, leading to operational disruptions or misuse of resources. While the CVSS score indicates a low severity, it is critical to understand that the context of deployment can amplify this vulnerability's impact. For example, if an attacker can create files in a directory used by a critical application, it could lead to further exploitation or service disruption.

Organizations should address this vulnerability in their priority patch cycle. Although it is not classified as critical, the potential for exploitation requires attention to maintain the security posture of the organization.

Exploitation Status

Signal

Status

Known Exploit

No

Public PoC

No

Actively Exploited

No

Ransomware Use

No

Affected Versions

The vulnerable versions of runc include all versions prior to the vendor patch, specifically:

Version

Status

1.1.13 and earlier

Vulnerable

1.2.0-rc2 and earlier

Vulnerable

Mitigation & Remediation

Organizations should prioritize patching to the latest versions of runc, specifically to version 1.1.14 or 1.2.0-rc3 to mitigate this vulnerability. In case an immediate patch cannot be applied, using user namespaces will restrict the attack significantly. Additionally, enforcing strict SELinux or AppArmor policies can further help minimize the risk. Organizations may also consider conducting a security assessment to identify potential vulnerabilities in their configurations.

Organizations should validate their remediation through penetration testing to ensure similar weaknesses are addressed.

Detection Guidance

To detect potential exploitation of this vulnerability, organizations should monitor for unusual file and directory creation patterns in shared volumes. Additionally, logging any abnormal container behavior and monitoring user namespace configurations may provide insights into unauthorized activities. Network signatures can also be employed to flag suspicious activities related to container management.

AppSecure Threat Intelligence Insight

The low severity of CVE-2024-45310 should not lead to complacency. As organizations increasingly adopt containerization, vulnerabilities in container runtimes like runc can have far-reaching implications if not addressed. Security teams should take this as a reminder to maintain vigilance in their container security posture and ensure proper configurations to minimize risk.

Organizations can benefit from establishing a comprehensive vulnerability management program to proactively identify and remediate weaknesses. Furthermore, leveraging penetration testing methodologies can enhance their overall security posture.

Lastly, organizations should consider engaging in VAPT testing services to ensure a thorough review of their security measures against potential vulnerabilities.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Latest CVEs. Recently published vulnerabilities from the NVD database.

View all vulnerabilities
CVE IDSeverity
CVE-2025-65418HIGH
CVE-2025-65417MEDIUM
CVE-2025-65416MEDIUM
CVE-2025-65415MEDIUM
CVE-2025-61314HIGH

Protect Your Business with Hacker-Focused Approach.