Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-45310

LOW 3.6EPSS 16%

runc can be confused to create empty files/directories on the host

Also known as GHSA-jfvp-7x6p-h2pv, GO-2024-3110

Mitigation

  • Upgrade github.com/opencontainers/runc to one of 1.1.14, 1.2.0-rc.3 (or later in the same release line).

Who should check

  • Projects that depend on Go package github.com/opencontainers/runc (< 1.1.14)
  • Anyone running opencontainers runc < 1.1.14; >= 1.2.0-rc-1, < 1.2.0-rc.3

Vulnerability facts

Affected
github.com/opencontainers/runc < 1.1.14
Fixed in
1.1.14, 1.2.0-rc.3
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
3.6 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: Required
  • Scope: Changed (impact reaches other components)
  • Confidentiality impact: None
  • Integrity impact: Low
  • Availability impact: None
EPSS
0.31% chance of exploitation in 30 days (percentile 16, 2026-11-26)
CWE
CWE-363, CWE-61
Published
Modified

Description

runc is a CLI tool for spawning and running containers according to the OCI specification. runc 1.1.13 and earlier, as well as 1.2.0-rc2 and earlier, can be tricked into creating empty files or directories in arbitrary locations in the host filesystem by sharing a volume between two containers and exploiting a race with `os.MkdirAll`. While this could be used to create empty files, existing files would not be truncated. An attacker must have the ability to start containers using some kind of custom volume configuration. Containers using user namespaces are still affected, but the scope of places an attacker can create inodes can be significantly reduced. Sufficiently strict LSM policies (SELinux/Apparmor) can also in principle block this attack -- we suspect the industry standard SELinux policy may restrict this attack's scope but the exact scope of protection hasn't been analysed. This is exploitable using runc directly as well as through Docker and Kubernetes. The issue is fixed in runc v1.1.14 and v1.2.0-rc3. Some workarounds are available. Using user namespaces restricts this attack fairly significantly such that the attacker can only create inodes in directories that the remapped root user/group has write access to. Unless the root user is remapped to an actual user on the host (such as with rootless containers that don't use `/etc/sub[ug]id`), this in practice means that an attacker would only be able to create inodes in world-writable directories. A strict enough SELinux or AppArmor policy could in principle also restrict the scope if a specific label is applied to the runc runtime, though neither the extent to which the standard existing policies block this attack nor what exact policies are needed to sufficiently restrict this attack have been thoroughly tested.

Affected and fixed versions

Package / productAffectedFixedSource
Go github.com/opencontainers/runc< 1.1.141.1.14, 1.2.0-rc.3osv
opencontainers runc< 1.1.14; >= 1.2.0-rc-1, < 1.2.0-rc.3—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2024-45310. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-45310.md
Affected: github.com/opencontainers/runc < 1.1.14
Fixed in: 1.1.14, 1.2.0-rc.3

Steps:
1. Search this machine and project for github.com/opencontainers/runc (Go), opencontainers runc: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2024-45310 being exploited?

There is no confirmed exploitation: CVE-2024-45310 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2024-45310?

Low: CVSS 3.6 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

Which versions are affected by CVE-2024-45310?

github.com/opencontainers/runc < 1.1.14.

Is there a fix for CVE-2024-45310?

Yes. Fixed in 1.1.14, 1.2.0-rc.3. Upgrade github.com/opencontainers/runc to one of 1.1.14, 1.2.0-rc.3 (or later in the same release line).

How do I check if I'm affected by CVE-2024-45310?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors