Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-52565: CWE-61: UNIX Symbolic Link (Symlink) Following in opencontainers runc

0
High
VulnerabilityCVE-2025-52565cvecve-2025-52565cwe-61cwe-363
Published: Thu Nov 06 2025 (11/06/2025, 20:02:58 UTC)
Source: CVE Database V5
Vendor/Project: opencontainers
Product: runc

Description

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.

AI-Powered Analysis

AILast updated: 11/06/2025, 20:36:12 UTC

Technical Analysis

CVE-2025-52565 is a vulnerability in the opencontainers runc tool, which is widely used for spawning and running OCI-compliant containers. The flaw exists in 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. It stems from insufficient checks during the bind-mounting process of /dev/pts/$n to /dev/console inside containers. Specifically, attackers can exploit symbolic link (symlink) following weaknesses (CWE-61) and race conditions (CWE-363) to trick runc into bind-mounting paths that are normally read-only or masked onto writable paths controlled by the attacker. This manipulation occurs after the pivot_root system call, preventing direct host file writes but enabling indirect attacks. By gaining a writable copy of sensitive kernel interfaces such as /proc/sysrq-trigger, attackers can cause denial of service on the host or container. Alternatively, by modifying /proc/sys/kernel/core_pattern, attackers can achieve container breakout, escaping container isolation. The vulnerability requires local attacker presence with user interaction but no elevated privileges. The CVSS 4.0 score is 8.4 (high), reflecting the significant impact on integrity and availability with low attack complexity. The issue is fixed in runc versions 1.2.8, 1.3.3, and 1.4.0-rc.3. No known exploits are currently in the wild, but the similarity to CVE-2025-31133 indicates a credible attack vector. Organizations relying on runc for container orchestration should urgently update to patched versions to mitigate risks of container breakout and denial of service.

Potential Impact

For European organizations, this vulnerability poses a significant risk to containerized environments, which are widely adopted across industries including finance, healthcare, and critical infrastructure. Exploitation can lead to container breakout, undermining the isolation guarantees of containerization and potentially exposing sensitive data or internal systems. Denial of service attacks could disrupt critical services, impacting business continuity and compliance with regulations such as GDPR and NIS Directive. The ability to manipulate kernel interfaces indirectly could also facilitate further privilege escalation or lateral movement within networks. Given the prevalence of runc as a core container runtime in Kubernetes and Docker environments, the scope of affected systems is broad, increasing the potential impact. Organizations with multi-tenant or cloud environments are particularly at risk, as attackers could leverage this vulnerability to compromise shared infrastructure. The requirement for local access and user interaction somewhat limits remote exploitation but does not eliminate risk, especially in environments with untrusted users or compromised containers.

Mitigation Recommendations

European organizations should immediately upgrade runc to versions 1.2.8, 1.3.3, or 1.4.0-rc.3 or later to remediate this vulnerability. Beyond patching, implement strict container runtime security policies that limit bind-mount usage and restrict access to sensitive device files such as /dev/pts and /dev/console. Employ container security tools that monitor and enforce least privilege principles, preventing containers from mounting or accessing critical host paths. Use kernel security modules like SELinux or AppArmor to confine container processes and restrict their ability to manipulate /proc filesystem entries. Regularly audit container configurations and runtime parameters for unsafe bind mounts or symlink usage. Incorporate runtime detection tools that can identify anomalous bind-mount operations or attempts to exploit symlink vulnerabilities. For environments with multi-tenant containers, isolate workloads using namespaces and cgroups to minimize the blast radius of potential container escapes. Finally, maintain robust logging and alerting for container runtime events to enable rapid detection and response to exploitation attempts.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2025-06-18T03:55:52.036Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 690d0327e0be3996723a126f

Added to database: 11/6/2025, 8:20:55 PM

Last enriched: 11/6/2025, 8:36:12 PM

Last updated: 11/19/2025, 11:56:19 PM

Views: 94

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats