p PatchFirst

CVE-2024-21626

CVE-2024-21626 · runc container breakout through process.cwd trickery and leaked fds

This page contains facts from public vulnerability sources. Check the original advisory before updating.

This page shows selected source facts. See the linked advisories for the complete description and affected versions.

runc is a CLI tool for spawning and running containers on Linux according to the OCI specification. In runc 1.1.11 and earlier, due to an internal file descriptor leak, an attacker could cause a newly-spawned container process (from runc exec) to have a working directory in the host filesystem namespace, allowing for a container escape by giving access to the host filesystem ("attack 2"). The same attack could be used by a malicious image to allow a container process to gain access to the host filesystem through runc run ("attack 1"). Variants of attacks 1 and 2 could be also be used to overwrite semi-arbitrary host binaries, allowing for complete container escapes ("attack 3a" and "attack 3b"). runc 1.1.12 includes patches for this issue.

CVSS 8.6 · High · EPSS 18.9% · Public exploit · Fix available

Published
Updated

Stack: system · containers

Affected products and versions

  • runc

    Versions
    • >=v1.0.0-rc93, < 1.1.12: Affected

    No fix published

  • runc Debian:12

    Versions
    • 1.1.5+ds1-1
    Affected ranges
    • ECOSYSTEM: < 1.1.5+ds1-1+deb12u1

    Update to 1.1.5+ds1-1+deb12u1

  • runc Debian:13

    Affected ranges
    • ECOSYSTEM: < 1.1.12+ds1-1

    Update to 1.1.12+ds1-1

  • runc Debian:14

    Affected ranges
    • ECOSYSTEM: < 1.1.12+ds1-1

    Update to 1.1.12+ds1-1

  • runc Ubuntu:Pro:18.04:LTS

    Versions
    • 1.0.0~rc2+docker1.13.1-0ubuntu1
    • 1.0.0~rc4+dfsg1-2
    • 1.0.0~rc4+dfsg1-6
    • 1.0.0~rc4+dfsg1-6ubuntu0.18.04.1
    • 1.0.0~rc7+git20190403.029124da-0ubuntu1~18.04.1
    • 1.0.0~rc7+git20190403.029124da-0ubuntu1~18.04.2
    • 1.0.0~rc7+git20190403.029124da-0ubuntu1~18.04.2+esm1
    • 1.0.0~rc10-0ubuntu1~18.04.1
    • 1.0.0~rc10-0ubuntu1~18.04.2
    • 1.0.0~rc93-0ubuntu1~18.04.1
    • 1.0.0~rc93-0ubuntu1~18.04.2
    • 1.0.0~rc95-0ubuntu1~18.04.1
    • 1.0.0~rc95-0ubuntu1~18.04.2
    • 1.0.1-0ubuntu2~18.04.1
    • 1.1.0-0ubuntu1~18.04.1
    • 1.1.4-0ubuntu1~18.04.1
    • 1.1.4-0ubuntu1~18.04.2
    Affected ranges
    • ECOSYSTEM: < 1.1.4-0ubuntu1~18.04.2+esm1

    Update to 1.1.4-0ubuntu1~18.04.2+esm1

  • runc Ubuntu:20.04:LTS

    Versions
    • 1.0.0~rc8+git20190923.3e425f80-0ubuntu1
    • 1.0.0~rc10-0ubuntu1
    • 1.0.0~rc93-0ubuntu1~20.04.1
    • 1.0.0~rc93-0ubuntu1~20.04.2
    • 1.0.0~rc95-0ubuntu1~20.04.1
    • 1.0.0~rc95-0ubuntu1~20.04.2
    • 1.0.1-0ubuntu2~20.04.1
    • 1.1.0-0ubuntu1~20.04.1
    • 1.1.0-0ubuntu1~20.04.2
    • 1.1.4-0ubuntu1~20.04.1
    • 1.1.4-0ubuntu1~20.04.2
    • 1.1.4-0ubuntu1~20.04.3
    • 1.1.7-0ubuntu1~20.04.1
    Affected ranges
    • ECOSYSTEM: < 1.1.7-0ubuntu1~20.04.2

    Update to 1.1.7-0ubuntu1~20.04.2

  • runc Ubuntu:22.04:LTS

    Versions
    • 1.0.1-0ubuntu2
    • 1.0.1-0ubuntu3
    • 1.0.3-0ubuntu1
    • 1.1.0-0ubuntu1
    • 1.1.0-0ubuntu1.1
    • 1.1.4-0ubuntu1~22.04.1
    • 1.1.4-0ubuntu1~22.04.2
    • 1.1.4-0ubuntu1~22.04.3
    • 1.1.7-0ubuntu1~22.04.1
    Affected ranges
    • ECOSYSTEM: < 1.1.7-0ubuntu1~22.04.2

    Update to 1.1.7-0ubuntu1~22.04.2

Original sources

Check your server →