Race Condition Affecting conftest package, versions <0.49.0-r1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.07% (32nd 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 Learn

Learn about Race Condition vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CHAINGUARDLATEST-CONFTEST-6226364
  • published1 Feb 2024
  • disclosed31 Jan 2024

Introduced: 31 Jan 2024

CVE-2024-23651  (opens in a new tab)
CWE-362  (opens in a new tab)

How to fix?

Upgrade Chainguard conftest to version 0.49.0-r1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream conftest package and not the conftest package as distributed by Chainguard. See How to fix? for Chainguard relevant fixed versions and status.

BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. Two malicious build steps running in parallel sharing the same cache mounts with subpaths could cause a race condition that can lead to files from the host system being accessible to the build container. The issue has been fixed in v0.12.5. Workarounds include, avoiding using BuildKit frontend from an untrusted source or building an untrusted Dockerfile containing cache mounts with --mount=type=cache,source=... options.

CVSS Scores

version 3.1