Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/containerd/containerd
  4. ›
  5. CVE-2024-25621

CVE-2024-25621: containerd affected by a local privilege escalation via wide permissions on CRI directory

November 6, 2025

An overly broad default permission vulnerability was found in containerd.

  • /var/lib/containerd was created with the permission bits 0o711, while it should be created with 0o700
  • Allowed local users on the host to potentially access the metadata store and the content store
  • /run/containerd/io.containerd.grpc.v1.cri was created with 0o755, while it should be created with 0o700
  • Allowed local users on the host to potentially access the contents of Kubernetes local volumes. The contents of volumes might include setuid binaries, which could allow a local user on the host to elevate privileges on the host.
  • /run/containerd/io.containerd.sandbox.controller.v1.shim was created with 0o711, while it should be created with 0o700

The directory paths may differ depending on the daemon configuration. When the temp directory path is specified in the daemon configuration, that directory was also created with 0o711, while it should be created with 0o700.

References

  • github.com/advisories/GHSA-pwhc-rpq9-4c8w
  • github.com/containerd/containerd
  • github.com/containerd/containerd/commit/7c59e8e9e970d38061a77b586b23655c352bfec5
  • github.com/containerd/containerd/security/advisories/GHSA-pwhc-rpq9-4c8w
  • nvd.nist.gov/vuln/detail/CVE-2024-25621

Code Behaviors & Features

Detect and mitigate CVE-2024-25621 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.7.29

Fixed versions

  • 1.7.29

Solution

Upgrade to version 1.7.29 or above.

Impact 7.3 HIGH

CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-279: Incorrect Execution-Assigned Permissions

Source file

go/github.com/containerd/containerd/CVE-2024-25621.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 16 Dec 2025 12:20:59 +0000.