Root command execution via prototype-chain traversal
Published Apr 14, 2026 · Updated Apr 14, 2026
Sandbox escape in Cohere Terrarium before 1.0.1 allows attackers to execute arbitrary commands as root inside its Linux container. Plain-object jsglobals mocks in service.ts inherit Object.prototype, letting submitted Python reach the host Function constructor and globalThis. Exploitation requires code submission to the Pyodide sandbox; a successful escape controls the Node.js process and its container resources.
Summary
What happened
Sandbox escape in Cohere Terrarium before 1.0.1 allows attackers to execute arbitrary commands as root inside its Linux container. Plain-object jsglobals mocks in service.ts inherit Object.prototype, letting submitted Python reach the host Function constructor and globalThis. Exploitation requires code submission to the Pyodide sandbox; a successful escape controls the Node.js process and its container resources.
The record
- CVE
- CVE-2026-5752
- Published
- Apr 14, 2026
- Updated
- Apr 14, 2026
- Vendor
- Cohere
- Product
- Terrarium
- Classifications
- CWE-1321, T1059.007
- Attack vector
- local
- Privileges
- unauthenticated
Timeline
How it unfolded
- Apr 14, 2026CVE publishedPublication date reported by the CVE source.
- Apr 14, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=all
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- CVE-2026-5752 prototype-escape regression testproof of concept · validated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo