/

CVE-2026-46695

Severity:

CRITICAL RISK

(10.0)

Capability Misconfiguration (CWE-284) in Boxlite Sandbox

CVE-2026-46695

Deferred

Vulnerability type

Category:

Authorization and Capability Misconfiguration

CWE:

CWE-284

Impact:

Sandbox Escape and Arbitrary File System Writes

Severity:

CRITICAL RISK

(10.0)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Boxlite's sandbox service previously failed to restrict Linux kernel capabilities inside OCI containers, allowing processes to remount read-only directories as read-write.

Under these conditions, malicious code running in a Box can gain unintended write access to host-exposed or protected paths, enabling arbitrary file modification and full sandbox escape scenarios.

Affected context

This vulnerability affects Boxlite environments where untrusted code is executed inside OCI containers with default or overly permissive Linux capabilities.

It is especially relevant when host directories, shared volumes, or system paths are mounted as read-only into containers under the assumption that they cannot be modified.

In such setups, the lack of capability restrictions enables containerized processes to change mount options at runtime and bypass the intended read-only protection.

Exploit preconditions

  • Attack surface: Code executing within a Boxlite-managed OCI container.
  • Required access: Ability to run or influence code inside the Box (e.g., a user-submitted job, CI task, or multi-tenant workload).
  • Trigger point: Execution of filesystem operations that remount a read-only directory as read-write inside the container.
  • Why exploitation is possible: The container is granted kernel capabilities that allow remounting filesystems, so the assumed read-only mounts are enforced only by configuration, not by effective privilege boundaries.

Why this happens

The root cause lies in misconfigured and overly broad Linux capability assignment for containers created by Boxlite.

Instead of running untrusted workloads under a least-privilege capability set, the environment allowed capabilities that can alter mount options, such as remounting filesystems.

This maps to CWE-284: Improper Access Control, where the system fails to enforce proper authorization over sensitive operations—in this case, low-level kernel capabilities that directly affect file system protections.

Potential impact

  • Malicious code may remount read-only directories as read-write within the container.
  • Attackers could modify, replace, or delete files that were assumed to be immutable, including configuration, scripts, or binaries.
  • Sandboxed workloads can potentially tamper with shared volumes used by other tenants or system components.
  • In some deployments, this could lead to privilege escalation, data corruption, or a full sandbox escape, depending on what directories are mounted.

General mitigation guidance

Mitigation generally focuses on enforcing strict least-privilege capability sets and hardening filesystem isolation for untrusted containers.

Common defensive patterns include:

  • Dropping all non-essential Linux capabilities by default and whitelisting only what each workload strictly requires.
  • Using security profiles (such as seccomp, AppArmor, or SELinux policies) to restrict privileged filesystem operations, including remounts.
  • Ensuring that read-only mounts are backed by mechanisms that cannot be overridden from inside the container, and avoiding exposing sensitive host paths.
  • Segregating untrusted workloads into isolated namespaces and nodes, combined with minimal privileges and dedicated volumes.

How teams detect issues like this

Effective detection typically combines configuration review with runtime monitoring:

  • Static checks on container runtime and orchestration policies to flag containers that run with broad or default capability sets.
  • Code and infrastructure-as-code reviews focused on identifying missing cap-drop directives or permissive security profiles.
  • Runtime observability that records mount and remount operations initiated by containerized processes, raising alerts for unexpected changes to read-only paths.
  • Automated security scanners or policy-as-code tools that enforce organization-wide standards for container capabilities and sandbox configurations before deployment.

Sources

SourceLink
github.comgithub.com/boxlite-ai/boxlite/pull/454
github.comgithub.com/boxlite-ai/boxlite/releases/tag/v0.9.0
github.comgithub.com/boxlite-ai/boxlite/security/advisories/GHSA-g6ww-w5j2-r7x3

Frequently asked

questions

It can be exploited remotely if an attacker can submit or control code that runs inside a Boxlite Box, such as via an online code execution service, CI pipeline, or API that launches untrusted workloads.

An attacker needs the ability to execute or inject code within a Boxlite-managed container. No direct access to the host is required; the misconfigured capabilities inside the container provide the necessary leverage.

The safest pattern is to enforce least-privilege capabilities for all containers running untrusted code, explicitly dropping any capability that allows remounting filesystems or performing other sensitive kernel operations, and combining this with hardened security profiles.

Future prevention should rely on capability-minimizing defaults, policy-as-code checks for container security settings, regular review of sandbox assumptions, and comprehensive testing of multi-tenant isolation boundaries under adversarial conditions.

Find out what's already
exploitable in your codebase.