CVE-2024-45310
Beskrivelse
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.
Beskrivelsen gjengis slik kilden har publisert den, på engelsk.
Nøkkelfakta
- Publisert
- 2024-09-03
- Sist endret
- 2026-06-17
- Tildelt av
- security-advisories@github.com
- CVSS-vektor
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N- Scoret av
- nvd@nist.gov (NVD Primary)
- Sannsynlighet for utnyttelse
-
0.3 %
høyere enn 24 %
av alle kjente sårbarheter
EPSS, neste 30 dager, modell v2026.06.15 - Rettelse finnes
- Ja, se referansene
Berørte produkter
| Leverandør | Produkt | Versjoner | Status |
|---|---|---|---|
| github.com/opencontainers | runc (Go) | < 1.1.14 | Berørt |
| github.com/opencontainers | runc (Go) | ≥ 1.2.0-rc.1, < 1.2.0-rc.3 | Berørt |
| Linuxfoundation | Runc | < 1.1.14 | Berørt |
| Linuxfoundation | Runc | 1.2.0 | Berørt |
Svakhetstype
-
CWE-363: Race Condition Enabling Link Following
The 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 w…
-
CWE-61: UNIX Symbolic Link (Symlink) Following
The 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 t…
Referanser
- https://github.com/opencontainers/runc/commit/63c2908164f3a1daea455bf5bcd8d363d70328c7
- https://github.com/opencontainers/runc/commit/8781993968fd964ac723ff5f360b6f259e809a3e
- https://github.com/opencontainers/runc/commit/f0b652ea61ff6750a8fcc69865d45a7abf37accf
- https://github.com/opencontainers/runc/pull/4359
- https://github.com/opencontainers/runc/security/advisories/GHSA-jfvp-7x6p-h2pv
- http://www.openwall.com/lists/oss-security/2024/09/03/1
- https://security.netapp.com/advisory/ntap-20250221-0008/
Relatert hos Berigo
Artikler
-
Sosial manipulering ga tilgang til skyen hos kapitalforvalteren Apollo
Samme produkt
2026-08-25
Kapitalforvalteren Apollo har varslet om at uvedkommende hadde tilgang til enkelte skyplattformer mellom 6. og 10. juli. Selskapet oppgir at navn, fø…
-
Delte samtaler i Claude ble søkbare i Google
Samme produkt
2026-08-18
404 Media meldte 27. juli 2026 at delte samtaler og artefakter fra Claude lå i Googles søkeresultater. Blant funnene var medisinske rapporter, pasien…
-
Midnight Blizzard kaprer hotellnett og stjeler pålogginger fra reisende
Samme produkt
2026-08-03
Microsoft offentliggjorde 31. juli 2026 kampanjen CaptiveCrunch, der aktøren Midnight Blizzard kaprer trådløse nett på hoteller og sender reisende ti…
-
ShinyHunters bruker telefonphishing for å komme forbi MFA på SSO-kontoer
Samme produkt
2026-01-27
Angriperne utgir seg for å være IT-support og lokker ansatte til å oppgi passord og engangskoder på falske innloggingssider for Okta, Entra og Google.
Berører dette dere?
En sårbarhet betyr bare noe hvis dere kjører produktet, i en berørt versjon, et sted en angriper kommer til.