Time-of-check Time-of-use (TOCTOU) Race Condition Affecting github.com/containers/buildah/internal/volumes package, versions *


Severity

Recommended
0.0
high
0
10

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

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-GITHUBCOMCONTAINERSBUILDAHINTERNALVOLUMES-8648444
  • published21 Jan 2025
  • disclosed20 Jan 2025
  • creditUnknown

Introduced: 20 Jan 2025

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

How to fix?

A fix was pushed into the master branch but not yet published.

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.

References

CVSS Scores

version 4.0
version 3.1