CVE-2026-55107 — Vulnerability in kobako — CVE Details
kobako Sandbox Escape: guest eval reaches host RCE via method_missing → public_send (any bound Service)
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.91%). Schedule for your next planned update.
Does your project use an affected kobako version?
Paste your Gemfile.lock to check it for CVE-2026-55107 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
A guest mruby script running inside the Kobako sandbox can execute arbitrary Ruby in the host process, fully escaping the sandbox.
Details
A host embeds bound "Service" objects that guest scripts call across the wasm
boundary through the transport dispatcher. The dispatcher passed the
guest-supplied method name straight to Object#public_send on the bound
object, with no restriction to the object's own methods:
target.public_send(method.to_sym, *args, **kwargs, &block)
public_send can invoke any public method, including Ruby's ambient
reflection surface. A guest pivots through the public send into otherwise
private Kernel methods: a dispatch request with method = "send" and
args = [:eval, "<ruby>"] evaluates to target.send(:eval, "<ruby>"),
running attacker-controlled Ruby in the host. Any bound Service object is
sufficient — no Service-specific behavior is required.
Proof of Concept
A guest call equivalent to:
Service.send(:eval, "<arbitrary host ruby>")
executes in the host process and can read or modify host state, spawn processes, and so on.
Impact
Complete sandbox escape leading to remote code execution in the host process,
defeating the gem's central guarantee of isolating untrusted mruby scripts.
Any deployment that runs untrusted or attacker-influenced scripts is affected.
All released versions (0.1.0 through 0.9.0) are vulnerable; the dispatcher
carried the same unguarded public_send sink under three successive names
(registry → rpc → transport).
Patches
Fixed in 0.9.1. The dispatcher now rejects any method whose resolved owner is
a core/meta module (BasicObject, Kernel, Object, Module, Class), so
only methods the bound object itself defines — or dynamically handles via
method_missing — remain reachable. The ambient reflection methods (send,
__send__, public_send, instance_eval, instance_exec, method,
instance_variable_get, …) are all owned by those modules and are blocked.
Workarounds
None within the affected versions. Until you can upgrade, do not bind any host Service object into a sandbox that runs untrusted scripts. Upgrade to 0.9.1.
References
- GHSA-7pwq-q9jf-539h
- Fix commit: 64f8470
Credits
Reported and fixed by Ahmed Al Hafoudh.
Advisory Timeline
- First published August 18, 2026 (100 days ago).
- Last revised October 26, 2026 — 69 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install kobako -v 0.9.1
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: RubyGems (1).
| Package | Fixed In |
|---|---|
| kobako RubyGems · Affected: 0.1.0, 0.1.1, 0.1.2, 0.2.0 (+10 more) | 0.9.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-470
- CWE-94Code InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 10.0 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
References
- https://github.com/elct9620/kobako/security/advisories/GHSA-7pwq-q9jf-539hWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-55107ADVISORY
- https://github.com/elct9620/kobako/commit/64f84700c81f44902bed9211318d5362f44987b3WEB
- https://github.com/elct9620/kobakoPACKAGE
- https://github.com/elct9620/kobako/releases/tag/v0.9.1WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/kobako/GHSA-7pwq-q9jf-539h.ymlWEB
Frequently Asked Questions
- What is CVE-2026-55107?
- kobako Sandbox Escape: guest eval reaches host RCE via method_missing → public_send (any bound Service). This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 10.0/10).
- How do I check if my project is affected by CVE-2026-55107?
- CVE-2026-55107 affects kobako. It has a 0.9% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-55107 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is an above-median EPSS score — 57.8% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-130001CRITICAL
Mustache for Ruby: RCE using built-in method access
- CVE-2026-122006CRITICAL
Active Storage: Possible arbitrary file write and read in image analysis