CVE Vulnerabilities

CVE-2025-52565

UNIX Symbolic Link (Symlink) Following

Published: Nov 06, 2025 | Modified: Nov 12, 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. Versions 1.0.0-rc3 through 1.2.7, 1.3.0-rc.1 through 1.3.2, and 1.4.0-rc.1 through 1.4.0-rc.2, due to insufficient checks when bind-mounting /dev/pts/$n to /dev/console inside the container, an attacker can trick runc into bind-mounting paths which would normally be made read-only or be masked onto a path that the attacker can write to. This attack is very similar in concept and application to CVE-2025-31133, except that it attacks a similar vulnerability in a different target (namely, the bind-mount of /dev/pts/$n to /dev/console as configured for all containers that allocate a console). This happens after pivot_root(2), so this cannot be used to write to host files directly – however, as with CVE-2025-31133, this can load to denial of service of the host or a container breakout by providing the attacker with a writable copy of /proc/sysrq-trigger or /proc/sys/kernel/core_pattern (respectively). 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