Time-of-check Time-of-use (TOCTOU) Race Condition Affecting github.com/containerd/containerd/pkg/archive package, versions >=2.1.0 <2.1.1


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.01% (2nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMCONTAINERDCONTAINERDPKGARCHIVE-10187897
  • published21 May 2025
  • disclosed20 May 2025
  • creditTõnis Tiigi

Introduced: 20 May 2025

NewCVE-2025-47290  (opens in a new tab)
CWE-367  (opens in a new tab)

How to fix?

Upgrade github.com/containerd/containerd/pkg/archive to version 2.1.1 or higher.

Overview

Affected versions of this package are vulnerable to Time-of-check Time-of-use (TOCTOU) Race Condition during the image unpack process. An attacker can modify the host file system by exploiting the time gap between checking and using a file or resource.

Workarounds

  1. Verify image integrity and restrict image import to authorized users.
  2. Permit image use and import only to users who are trusted.

CVSS Base Scores

version 4.0
version 3.1