CVE-2024-45310: runc can be confused to create empty files/directories on the host in github.com/opencontainers/runc

Summary

06/09/2024
Yes i
Moderate
3.6

CVE-2024-45310: Can be confused to create empty files/directories on the host in github.com/opencontainers/runc. Affects github.com/opencontainers/runc across 2 version ranges.

< 1.1.14 >= 1.2.0-rc.1, < 1.2.0-rc.3

Fixed in 1.1.14 or 1.2.0-rc.3, depending on the release line you run. How to fix ↓

Also tracked for

The same CVE-2024-45310 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

github.com/opencontainers/runc is an open-source Go package that provides a lightweight container runtime for Linux. It is widely used in containerization technologies and allows users to create and manage containers on a host system. However, a vulnerability has been discovered in runc that can lead to the creation of empty files or directories on the host system.

Vulnerability Detail

The vulnerability in runc arises from a confusion issue, which can be exploited to manipulate the creation of files or directories on the host system. An attacker could potentially abuse this vulnerability to fill up the host's storage with empty files or directories, causing denial of service or impacting the system's performance. The vulnerability affects versions 0.x, 1.2.0-rc.1, and all versions prior to 1.1.14 and 1.2.0-rc.3.

How To Fix

Latest published version: v1.5.2 as of 22 Oct 2026

go get github.com/opencontainers/runc@v1.5.2

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 1.1.14 1.1.14
    go get github.com/opencontainers/runc@v1.1.14
  • >= 1.2.0-rc.1, < 1.2.0-rc.3 1.2.0-rc.3
    go get github.com/opencontainers/runc@v1.2.0-rc.3

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

As a workaround, users can temporarily mitigate the risk by implementing strict access controls and monitoring the creation of files or directories on the host system. Additionally, it is advisable to limit the privileges of the runc process and ensure that it runs in a restricted environment.

Conclusion

The vulnerability in runc can lead to the creation of empty files or directories on the host system, potentially causing denial of service or performance issues. It is crucial to update runc to version 1.1.14 or 1.2.0-rc.3 to mitigate this vulnerability. Implementing strict access controls and monitoring file/directory creation can serve as temporary workarounds.

See every vulnerability recorded for github.com/opencontainers/runc →

Share this vulnerability

FAQ

runc is an open-source Go package that provides a lightweight container runtime for Linux. It allows users to create and manage containers on a host system.

The vulnerability in runc can be exploited to create empty files or directories on the host system, potentially leading to denial of service or performance issues.

Versions 0.x, 1.2.0-rc.1, and all versions prior to 1.1.14 and 1.2.0-rc.3 are affected by this vulnerability.

To fix this vulnerability, update runc to version 1.1.14 or 1.2.0-rc.3. You can do this by running the appropriate package manager command or manually installing the updated version.

As a temporary workaround, implement strict access controls, monitor file/directory creation, and limit the privileges of the runc process.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/opencontainers/runc.

How To Fix

Latest published version: v1.5.2 as of 22 Oct 2026

go get github.com/opencontainers/runc@v1.5.2

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 1.1.14 1.1.14
    go get github.com/opencontainers/runc@v1.1.14
  • >= 1.2.0-rc.1, < 1.2.0-rc.3 1.2.0-rc.3
    go get github.com/opencontainers/runc@v1.2.0-rc.3

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback