CVE-2026-93315: CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition in moby BuildKit
Description
CVE-2026-93315 is a medium severity vulnerability in moby BuildKit affecting versions from 0.31.0 up to but not including 0.33.1. It involves a time-of-check to time-of-use (TOCTOU) race condition when proxy networking with CA injection is enabled. This flaw allows a build process to modify its CA bundle before cleanup, potentially causing the cleanup operation to block, execute outside the intended build root filesystem, or fail without causing the build itself to fail.
CVSS v4.0
Score 5.8medium
Affected software
moby
BuildKit
pkg:github/github.com/moby/buildkitRun 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
This vulnerability is a TOCTOU race condition (CWE-367) in moby BuildKit's handling of proxy networking with CA injection. When enabled, a build can alter its CA bundle before the cleanup phase. This can lead to the cleanup process blocking, operating outside the build root filesystem, or failing silently without failing the build. The issue affects versions >=0.31.0 and <0.33.1. The CVSS 4.0 score is 5.8 (medium severity), reflecting local attack vector with low complexity and partial impact on availability and integrity.
Potential Impact
An attacker with low privileges and the ability to influence the build process can cause the cleanup phase to malfunction. This may result in resource cleanup blocking indefinitely, cleanup actions occurring outside the intended build environment, or silent failures in cleanup. While the build itself does not fail, these side effects could lead to resource exhaustion or unintended persistence of modified CA bundles, potentially impacting system integrity and availability.
Mitigation Recommendations
No vendor advisory or patch information is provided in the input data. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid enabling proxy networking with CA injection in affected versions or restrict build privileges to trusted users to minimize risk.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Docker
- Date Reserved
- 2026-09-17T17:17:25.321Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6ac41ec82cdf04f6564019f4
Added to database: 10/05/2026, 22:03:52 UTC
Last enriched: 10/05/2026, 22:18:19 UTC
Last updated: 10/05/2026, 22:19:02 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.