Time-of-check Time-of-use (TOCTOU) Race Condition Affecting github.com/containers/buildah package, versions <1.26.9>=1.27.0 <1.27.6>=1.29.0 <1.29.5>=1.33.0 <1.33.12>=1.35.0 <1.35.5>=1.37.0 <1.37.6>=1.38.0 <1.38.1


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Not Defined
EPSS
0.05% (20th 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-GITHUBCOMCONTAINERSBUILDAH-8648445
  • published21 Jan 2025
  • disclosed20 Jan 2025
  • creditUnknown

Introduced: 20 Jan 2025

CVE-2024-11218  (opens in a new tab)
CWE-367  (opens in a new tab)

How to fix?

Upgrade github.com/containers/buildah to version 1.26.9, 1.27.6, 1.29.5, 1.33.12, 1.35.5, 1.37.6, 1.38.1 or higher.

Overview

Affected versions of this package are vulnerable to Time-of-check Time-of-use (TOCTOU) Race Condition when mounting type=bind and type=cache directories that use a "src" flag. An attacker could use a concurrently-running stage or build to replace the "src" location between the point when possible symbolic links are resolved and when the bind mount is created.

CVSS Scores

version 4.0
version 3.1