# CVE-2025-52565: runc container escape with malicious config due to /dev/console mount and related races

Source: https://junglewise.ai/threats/cve-2025-52565-runc-container-escape-with-malicious-config-due-to-dev-console  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-11-18  
License: CC BY 4.0 with a link back

CVE-2025-52565 · Severity: medium · CVSS 4 · Published 2025-11-18

Container escape with malicious config due to /dev/console mount and related races in github.com/opencontainers/runc

Technologies: [github.com/opencontainers/runc (Go)](https://junglewise.ai/threats/technologies/github-com-opencontainers-runc). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2025-52565 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-52565 being exploited in the wild.

**How severe is CVE-2025-52565?** Medium severity, with a CVSS score of 4, published 18 November 2025.

**Which products and versions are affected?** github.com/opencontainers/runc (Go) SEMVER:introduced=1.0.0-rc3,fixed=1.2.8, SEMVER:introduced=1.0.0-rc3,fixed=1.2.8,introduced=1.3.0-rc.1,fixed=1.3.3,introduced=1.4.0-rc.1,fixed=1.4.0-rc.3.

**Is there a fix for CVE-2025-52565?** Yes. github.com/opencontainers/runc (Go): upgrade to 1.2.8, 1.4.0-rc.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2025-52565?** Check whether you run github.com/opencontainers/runc (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/opencontainers/runc (Go): upgrade to 1.2.8, 1.4.0-rc.3 or later

  ```sh
  go get github.com/opencontainers/runc@v1.4.0-rc.3
  ```


## Affected products

- github.com/opencontainers/runc (Go) SEMVER:introduced=1.0.0-rc3,fixed=1.2.8, SEMVER:introduced=1.0.0-rc3,fixed=1.2.8,introduced=1.3.0-rc.1,fixed=1.3.3,introduced=1.4.0-rc.1,fixed=1.4.0-rc.3

## Identifiers

- CVE-2025-52565
- GHSA-qw9x-cqr3-wc7r
- GO-2025-4097

## Related threats

- [opencontainers runc symlink following in rootfs setup](https://junglewise.ai/threats/cve-2026-41579-opencontainers-runc-symlink-following-in-rootfs-setup)
- [runc container escape and denial of service due to arbitrary write gadgets and procfs write redirects](https://junglewise.ai/threats/cve-2025-52881-runc-container-escape-and-denial-of-service-due-to-arbitrary)
- [GO-2025-4096 - Container escape via "masked path" abuse due to mount race conditions in github.com/opencontainers/runc](https://junglewise.ai/threats/cve-2025-31133-runc-multiple-container-escape-and-isolation-vulnerabilities)
- [Libcontainer is affected by capabilities elevation similar to GHSA-f3fp-gc8g-vw66](https://junglewise.ai/threats/cve-2025-27612-go-2025-3543-withdrawn-libcontainer-is-affected-by-capabilities)
- [GO-2024-3110 - Can be confused to create empty files/directories on the host in github.com/opencontainers/runc](https://junglewise.ai/threats/cve-2024-45310-runc-can-be-confused-to-create-empty-files-directories-on-the)
