Improper Validation of Specified Type of Input Affecting github.com/moby/buildkit/executor/oci package, versions <0.31.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.36% (28th 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-GITHUBCOMMOBYBUILDKITEXECUTOROCI-19005935
  • published20 Aug 2026
  • disclosed19 Aug 2026
  • creditAlex0Young

Introduced: 19 Aug 2026

CVE-2026-61711  (opens in a new tab)
CWE-1287  (opens in a new tab)

How to fix?

Upgrade github.com/moby/buildkit/executor/oci to version 0.31.1 or higher.

Overview

Affected versions of this package are vulnerable to Improper Validation of Specified Type of Input in client/llb/exec.go and executor/oci/spec_linux.go. An attacker can disable Seccomp and AppArmor protections for a build container by supplying a crafted build request with an invalid SecurityMode value, even when security.insecure was not granted. This affects build execution on Linux containers: the malformed enum is processed as a non-sandbox path and the resulting OCI spec drops the sandbox security options, so the build runs with weaker confinement than the user requested.

CVSS Base Scores

version 4.0
version 3.1