CVE-2026-61711: CWE-20: Improper Input Validation in moby buildkit
CVE-2026-61711 is an improper input validation vulnerability in moby buildkit versions prior to 0.31.1. A crafted build request with an invalid SecurityMode value could cause the build container to run without Seccomp and AppArmor protections, although Linux capabilities remained restricted. This issue is fixed in version 0.31.1.
AI Analysis
Technical Summary
BuildKit is a toolkit for building software artifacts efficiently. In versions before 0.31.1, a custom frontend could supply an invalid SecurityMode value in a build request. The executor component (specifically in executor/oci/spec_linux.go) treated this unsupported value as if sandboxing was disabled, bypassing Seccomp and AppArmor protections that normally restrict container behavior. Despite this, Linux capabilities restrictions remained in place. This vulnerability is classified as CWE-20 (Improper Input Validation) and has a CVSS 4.0 base score of 5.3 (medium severity). The issue was resolved in BuildKit version 0.31.1.
Potential Impact
An attacker controlling a custom frontend can disable Seccomp and AppArmor protections on the build container by providing an invalid SecurityMode value, potentially increasing the attack surface and reducing container isolation. However, Linux capabilities restrictions remain enforced, which limits the scope of the impact. There are no known exploits in the wild.
Mitigation Recommendations
Upgrade BuildKit to version 0.31.1 or later, where this vulnerability is fixed. Patch status is confirmed by the vendor advisory indicating the fix in 0.31.1. No other mitigations are specified.
CVE-2026-61711: CWE-20: Improper Input Validation in moby buildkit
Description
CVE-2026-61711 is an improper input validation vulnerability in moby buildkit versions prior to 0.31.1. A crafted build request with an invalid SecurityMode value could cause the build container to run without Seccomp and AppArmor protections, although Linux capabilities remained restricted. This issue is fixed in version 0.31.1.
CVSS v4.0
Score 5.3medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
BuildKit is a toolkit for building software artifacts efficiently. In versions before 0.31.1, a custom frontend could supply an invalid SecurityMode value in a build request. The executor component (specifically in executor/oci/spec_linux.go) treated this unsupported value as if sandboxing was disabled, bypassing Seccomp and AppArmor protections that normally restrict container behavior. Despite this, Linux capabilities restrictions remained in place. This vulnerability is classified as CWE-20 (Improper Input Validation) and has a CVSS 4.0 base score of 5.3 (medium severity). The issue was resolved in BuildKit version 0.31.1.
Potential Impact
An attacker controlling a custom frontend can disable Seccomp and AppArmor protections on the build container by providing an invalid SecurityMode value, potentially increasing the attack surface and reducing container isolation. However, Linux capabilities restrictions remain enforced, which limits the scope of the impact. There are no known exploits in the wild.
Mitigation Recommendations
Upgrade BuildKit to version 0.31.1 or later, where this vulnerability is fixed. Patch status is confirmed by the vendor advisory indicating the fix in 0.31.1. No other mitigations are specified.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-10T18:51:13.920Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a86109dacd9273b4993ac9d
Added to database: 08/19/2026, 20:22:53 UTC
Last enriched: 08/19/2026, 20:40:47 UTC
Last updated: 08/19/2026, 20:40:47 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.