PortGate

Advisories · Docker & Containers

CVE-2021-30465 High CVSS 8.5

runc symlink escape

Disclosed 2021 · Last reviewed 2 Dec 2026

A volume mount using a symlink could be resolved on the host instead of inside the container.

What happened

The mount destination was changed between the check and the mount.

Affected and patched versions

Affected
runc before 1.0.0-rc95.
Patched
runc 1.0.0-rc95 and later.

How to check your server

Check

runc --version

How to fix and harden

  1. Upgrade runc, containerd, and Docker together.
  2. Recreate containers after the runtime upgrade.

Fix

runc --version

Sources

Version ranges and fixes follow the vendor advisory. When a distribution backports a fix, trust its security tracker over the upstream version number. New advisories: RSS · JSON