CVE-2026-61711: CWE-20: Improper Input Validation in moby buildkit
CVE-2026-61711 is an improper input validation vulnerability in moby buildkit prior to version 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 versions before 0.31.1 allowed a custom frontend to submit a build request containing an invalid SecurityMode value. The executor component (specifically in oci/spec_linux.go) treated this unsupported value as disabling sandbox mode without requiring the security.insecure entitlement. Consequently, Seccomp and AppArmor protections were disabled for the build container, reducing its security posture despite Linux capabilities restrictions still being enforced. 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 could bypass Seccomp and AppArmor sandbox protections for build containers by supplying an invalid SecurityMode value. This reduces container isolation and security, potentially increasing the risk of container escape or unauthorized actions within the build environment. However, Linux capabilities restrictions remained in place, limiting the overall impact. There are no known exploits in the wild.
Mitigation Recommendations
Upgrade to BuildKit version 0.31.1 or later, where this vulnerability is fixed. No other mitigation is required as the fix is official and addresses the improper input validation issue.
CVE-2026-61711: CWE-20: Improper Input Validation in moby buildkit
Description
CVE-2026-61711 is an improper input validation vulnerability in moby buildkit prior to version 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
moby
buildkit
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 versions before 0.31.1 allowed a custom frontend to submit a build request containing an invalid SecurityMode value. The executor component (specifically in oci/spec_linux.go) treated this unsupported value as disabling sandbox mode without requiring the security.insecure entitlement. Consequently, Seccomp and AppArmor protections were disabled for the build container, reducing its security posture despite Linux capabilities restrictions still being enforced. 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 could bypass Seccomp and AppArmor sandbox protections for build containers by supplying an invalid SecurityMode value. This reduces container isolation and security, potentially increasing the risk of container escape or unauthorized actions within the build environment. However, Linux capabilities restrictions remained in place, limiting the overall impact. There are no known exploits in the wild.
Mitigation Recommendations
Upgrade to BuildKit version 0.31.1 or later, where this vulnerability is fixed. No other mitigation is required as the fix is official and addresses the improper input validation issue.
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
Threat ID: 6a86109dacd9273b4993ac9d
Added to database: 08/19/2026, 20:22:53 UTC
Last enriched: 09/11/2026, 07:33:33 UTC
Last updated: 10/03/2026, 14:46:09 UTC
Views: 62
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.