CVE Vulnerabilities

CVE-2025-31133

UNIX Symbolic Link (Symlink) Following

Published: Nov 06, 2025 | Modified: Nov 06, 2025
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
8.2 IMPORTANT
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
Ubuntu
HIGH

runc is a CLI tool for spawning and running containers according to the OCI specification. In versions 1.2.7 and below, 1.3.0-rc.1 through 1.3.1, 1.4.0-rc.1 and 1.4.0-rc.2 files, runc would not perform sufficient verification that the source of the bind-mount (i.e., the containers /dev/null) was actually a real /dev/null inode when using the containers /dev/null to mask. This exposes two methods of attack: an arbitrary mount gadget, leading to host information disclosure, host denial of service, container escape, or a bypassing of maskedPaths. This issue is fixed in versions 1.2.8, 1.3.3 and 1.4.0-rc.3.

Weakness

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 the product to operate on unauthorized files.

Affected Software

Name Vendor Start Version End Version
Red Hat Enterprise Linux 8 RedHat container-tools:rhel8-8100020251112161627.afee755d *
Red Hat Enterprise Linux 9 RedHat runc-4:1.2.5-3.el9_6 *
Red Hat Enterprise Linux 9 RedHat runc-4:1.3.0-4.el9_7 *
Red Hat OpenShift Container Platform 4 RedHat containernetworking-plugins *
Red Hat OpenShift Container Platform 4 RedHat cri-o *
Red Hat OpenShift Container Platform 4 RedHat cri-tools *
Red Hat OpenShift Container Platform 4 RedHat kernel *
Red Hat OpenShift Container Platform 4 RedHat kernel-rt *
Red Hat OpenShift Container Platform 4 RedHat runc *
Red Hat OpenShift Container Platform 4 RedHat skopeo *
Red Hat OpenShift Container Platform 4.16 RedHat rhcos-416.94.202511191934-0 *
Red Hat OpenShift Container Platform 4.18 RedHat rhcos-418.94.202511170715-0 *
Runc Ubuntu esm-apps/bionic *
Runc Ubuntu esm-apps/noble *
Runc Ubuntu esm-apps/xenial *
Runc Ubuntu esm-infra/focal *
Runc Ubuntu jammy *
Runc Ubuntu noble *
Runc Ubuntu plucky *
Runc Ubuntu questing *
Runc Ubuntu upstream *
Runc-app Ubuntu devel *
Runc-app Ubuntu esm-apps/focal *
Runc-app Ubuntu esm-apps/jammy *
Runc-app Ubuntu jammy *
Runc-app Ubuntu noble *
Runc-app Ubuntu plucky *
Runc-app Ubuntu questing *
Runc-app Ubuntu upstream *
Runc-stable Ubuntu devel *
Runc-stable Ubuntu questing *
Runc-stable Ubuntu upstream *

Potential Mitigations

  • Follow the principle of least privilege when assigning access rights to entities in a software system.
  • Denying access to a file can prevent an attacker from replacing that file with a link to a sensitive file. Ensure good compartmentalization in the system to provide protected areas that can be trusted.

References