CVE-2024-45310: runc can be confused to create empty files/directories on the host
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.
Not severe (CVSS 3.6, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 11 · Related 47Timeline
- 03-09-2024PublishedVulnerability first disclosed.
- 21-02-2025Last 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- OSV · UbuntuEcosystem advisory · calculated3.6LowCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N
- OSV · DebianEcosystem advisory · calculated3.6LowCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N
- OSV · WolfiEcosystem advisory · calculated3.6LowCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N
- OSV · GoEcosystem advisory · calculated3.6LowCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N
- OSV · ChainguardEcosystem advisory · calculated3.6LowCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N
- NVDNIST3.6LowCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N
- OSV · AlpineEcosystem advisory · calculated3.6LowCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N
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
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-61UNIX Symbolic Link (Symlink) FollowingThe product, when opening a file or directory, does not sufficiently account for when the file is a symbolic link that resolves to a target outside of the intended control sphere. This could allow an attacker to cause the product to operate on unauthorized files.
- CWE-363Race Condition Enabling Link FollowingThe product checks the status of a file or directory before accessing it, which produces a race condition in which the file can be replaced with a link before the access is performed, causing the product to access the wrong file.
Affected systems
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- github.com/opencontainers/runc/security/advisories/GHSA-jfvp-7x6p-h2pvX Refsource CONFIRMREPORTAdvisoryWEBPatchVendor Advisory
- github.com/opencontainers/runc/commit/63c2908164f3a1daea455bf5bcd8d363d70328c7X Refsource MISCFIXWEBPatch
- github.com/opencontainers/runc/commit/8781993968fd964ac723ff5f360b6f259e809a3eX Refsource MISCFIXWEBPatch
- github.com/opencontainers/runc/commit/f0b652ea61ff6750a8fcc69865d45a7abf37accfX Refsource MISCFIXWEBPatch