← Back to Patch Radar
PATCH RADAR / CVE-2026-55107

Kobako sandbox escape CVE-2026-55107: upgrade to 0.9.1

Kobako Ruby gem before 0.9.1 allows guest mruby scripts to escape the Wasm sandbox and run arbitrary Ruby in the host process. Check your installed version and upgrade.

Critical · CVSS 3.1 · 10.0 · CVE disclosed
Published by phil.on on
THE FLAW, SIMPLY EXPLAINED

How this vulnerability works

Kobako lets an application run untrusted Ruby scripts in a sealed-off interpreter, but before version 0.9.1 a script inside that seal could break out and run with the application's own power.

  1. How it starts

    An untrusted script is submitted

    The hosting application accepts a Ruby script from an outside source, such as an AI assistant, a user formula, a student answer or a third-party plugin, and passes it to Kobako to run inside its sealed area.

  2. What goes wrong

    The seal does not hold

    The sealed interpreter is meant to stop the script from reaching the host's memory, files, network or credentials. Instead, the script can run arbitrary Ruby directly in the host process, so the barrier simply fails.

  3. What it means for you

    The script gains the app's power

    Because the script runs as part of the hosting application, it could read private records, change data or reach anything the application can reach. Who is affected depends on whose scripts an installation accepts; the source does not say this was exploited.

An everyday comparisonIt is like letting a visitor write in a locked guest room, only to find they can open the door from the inside and use everything in the house as if it were their own.

A simplified explanation of the reported flaw. Actual risk depends on the affected version and how the system is used.

Affected products

  • Kobako (Ruby gem) — versions >= 0.1.0, < 0.9.1 are affected. Fixed in 0.9.1.
  • CVSS: 10.0 (Critical) — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
  • The affected version range is confirmed by the vendor (CNA) record; the source does not list other products.

Why it matters

Kobako is a Ruby gem that embeds a Wasm-isolated mruby interpreter so applications can run untrusted Ruby code (for example LLM-generated code, user formulas, student submissions or third-party plugins) in-process while denying it access to host memory, files, network and credentials. In versions from 0.1.0 up to but not including 0.9.1, a guest script running inside the sandbox can execute arbitrary Ruby in the host process, fully escaping the isolation boundary.

In practice, this means any untrusted script executed through the affected gem should be treated as able to run with the privileges of the host Ruby application, reaching its data and credentials. Because the input is untrusted and the flaw is remotely reachable per the CVSS vector, applications that execute user-supplied or third-party scripts through Kobako carry the highest risk. The issue is fixed in version 0.9.1.

Checks and remediation

What to check

  1. Inventory every application, service and container image that depends on the Kobako gem.
  2. Check the resolved version with bundle list | grep kobako or gem list kobako in each deployed environment (development, staging, production).
  3. Inspect Gemfile.lock in repositories to find applications pinned to a version >= 0.1.0 and < 0.9.1.
  4. Identify which of these applications execute untrusted Ruby scripts (LLM output, user formulas, student submissions, third-party plugins) through Kobako, since those carry the greatest exposure.
  5. Search application logs for unexpected errors or behavior originating from sandboxed script execution, and review who can supply scripts to the sandbox.

Remediation steps

  1. Self-hosted Linux/Ubuntu hosts, containers and build pipelines: update the dependency to Kobako 0.9.1 or later. Prefer updating Gemfile and running bundle update kobako, then confirm Gemfile.lock records 0.9.1 or newer. Rebuild and redeploy any container images or artifacts that bundle the gem so the fixed version ships. The application owner or platform team that manages the host is responsible for this patch.
  2. AWS: update the dependency in the application source, rebuild images (for example in ECR) and redeploy to the compute service you operate (for example ECS, EKS or Lambda). Confirm the Gemfile.lock inside the deployed artifact shows 0.9.1 or later. Environments you manage remain your responsibility; managed runtime services only provide the base platform, not application dependency updates.
  3. GCP: apply the same dependency update, rebuild images (for example in Artifact Registry) and redeploy to the service you operate (for example Cloud Run, GKE or Cloud Functions). Confirm the deployed artifact contains the fixed gem version. Customer-managed workloads must be patched by your team; managed platform components do not update this gem for you.
  4. Restrict who can submit scripts to Kobako sandboxes until every affected deployment is upgraded, and treat script input from untrusted sources as high risk during the transition.
  5. If an immediate upgrade is not possible, consult the vendor advisory for reversible defensive options; the source does not publish a workaround.

Verification

  1. Run bundle list | grep kobako (or gem list kobako) in every environment and confirm version 0.9.1 or later.
  2. Confirm the Gemfile.lock committed to each repository and embedded in deployed artifacts reflects the fixed version.
  3. Exercise a representative sandboxed script path to confirm normal operation after redeployment, and confirm no host-level effects are observed.
  4. Record the upgrade and verification results in your vulnerability tracking system and re-scan dependencies to confirm CVE-2026-55107 no longer matches.

Patch status

Patch status unconfirmed.

Workarounds

Workaround not documented.

CVSS and CWE

CVSS 3.1 · 10.0 · GitHub_M ↗
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Additional CVSS assessments by source and scope

References

SHARE THIS NOTE