3.6

CVE-2024-45310: runc can be confused to create empty files/directories on the host

Analyzed
AliasesMGASA-2025-0004SUSE-SU-2024:3222-1SUSE-SU-2024:3324-1
Published 03-09-2024Last modified 21-02-2025

Vulnerability summary

CVE-2024-45310 is a low (CVSS 3.6) UNIX Symbolic Link (Symlink) Following vulnerability in linuxfoundation runc. EPSS estimates a 0.32% chance of exploitation in the next 30 days, higher than 24.7% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 3.6, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
3.6/10
010
Low · v3.1 (CVE.org)
EPSS score
0.32%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 11 · Related 47

Timeline

  1. 03-09-2024
    PublishedVulnerability first disclosed.
  2. 21-02-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

9 scores · 8 sources · 2 versions

EPSS trend

Probability

0.32%

Chance of exploitation in the next 30 days

Percentile

25%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.32% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard88 products
  • buildah< 1.37.2-r1
  • cadvisor< 0.50.0-r2
  • cadvisor-compat< 0.50.0-r2
  • cadvisor-fips< 0.50.0-r2
  • cluster-autoscaler-1.31< 1.31.5-r1
Wolfi39 products
  • buildah< 1.37.2-r1
  • cadvisor< 0.50.0-r2
  • cadvisor-compat< 0.50.0-r2
  • ctop< 0.7.7-r19
  • docker< 27.2.0-r1
Suse28 products
  • runc&distro=SUSE Enterprise Storage 7.1< 1.1.14-150000.70.1 | < 1.2.6-150000.73.2
  • runc&distro=SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS< 1.1.14-150000.70.1
  • runc&distro=SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS< 1.1.14-150000.70.1 | < 1.2.6-150000.73.2
  • runc&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS< 1.1.14-150000.70.1 | < 1.2.6-150000.73.2
  • runc&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS< 1.1.14-150000.70.1 | < 1.2.6-150000.73.2
Opensuse4 products
  • runc&distro=openSUSE Leap 15.5< 1.1.14-150000.70.1
  • runc&distro=openSUSE Leap 15.6< 1.1.14-150000.70.1 | < 1.2.6-150000.73.2
  • runc&distro=openSUSE Leap Micro 5.5< 1.1.14-150000.70.1
  • runc&distro=openSUSE Tumbleweed< 1.2.0~rc3-1.1
Ubuntu2 products
  • runcAll versions (No fix recorded)
  • runc-appAll versions (No fix recorded)
Alpine1 product
  • runc< 1.1.14-r0
Debian1 product
  • runcAll versions (No fix recorded) | < 1.1.15+ds1-1
Github.com/opencontainers1 product
  • runc< 1.1.14 | ≥ 1.2.0-rc.1, < 1.2.0-rc.3
Linuxfoundation1 product
  • runc< 1.1.14 | 1.2.0:rc1 | 1.2.0:rc2
Mageia1 product
  • opencontainers-runc< 1.1.14-1.mga9
Opencontainers1 product
  • runc< 1.1.14 | ≥ 1.2.0-rc-1, < 1.2.0-rc.3

11 vendors · 167 products

References

31 links
Show all 31 references