OS Command Injection in Livebook
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
A vulnerability tracked as CVE-2026-66297 has been found in Livebook.
Successful exploitation can lead to full system takeover. CVSS score: 8.0/10.
What to do: apply the vendor's official patched release.
If unsure, ask your IT team or search "Livebook CVE-2026-66297" on the vendor's site.
CVE-2026-66297 (Livebook) — CWE-78 / CVSS v3 8.0
Attack vector: remote (network-reachable)
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
OS command injection (CWE-78) exists in Livebook.
Check the vendor advisory for the affected versions of Livebook.
Severity: High (CVSS 8.0/10). Successful exploitation can lead to full system takeover.
Update to the patched release per vendor advisory.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'Livebook' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
grep -r 'Livebook' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
Livebookを grep し、稼働しているサービス・バージョンを把握する。 -
2
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Hexlivebook |
≥ 0.13.0, < 0.18.7→ 0.18.7 ≥ 0.19.0, < 0.19.9→ 0.19.9 |
0.18.7 0.19.9 |
| livebook-devlivebook |
≥ 7cf4af5c10ec645f55a10f30e5661c54f6a6b319 (no fix yet)→ 0c2487326bbb37cb1eb43bb2f76eb93ad9f8fd6b, b2a8416d149043132fe5a14ed611e0fefc9dc9cd, f8fe9c62cb8bfc1dd0ccda4ea4a57c5e91563c85 |
0c2487326bbb37cb1eb43bb2f76eb93ad9f8fd6b, b2a8416d149043132fe5a14ed611e0fefc9dc9cd, f8fe9c62cb8bfc1dd0ccda4ea4a57c5e91563c85 |
Original description The description as published by the source.
Improper Neutralization of Special Elements used in an OS Command (OS Command Injection) vulnerability in livebook-dev livebook allows command injection into generated deployment setup commands.
LivebookWeb.Hub.Teams.DeploymentGroupAgentComponent.docker_instructions/2 and LivebookWeb.Hub.Teams.DeploymentGroupAgentComponent.fly_instructions/4 in lib/livebook_web/live/hub/teams/deployment_group_agent_component.ex interpolate deployment group environment variable values into the generated Docker and Fly.io setup commands without shell escaping. The values originate from the deployment group configuration and reach the sinks through Livebook.Hubs.Dockerfile.online_docker_info/3.
Both sinks place the value inside a double-quoted shell word, so a value containing a command substitution such as $(...) or backticks is evaluated by the shell without any need to break out of the quoting, and a literal double quote terminates the quoted word and allows arbitrary further tokens. The generated command is displayed in the Livebook web interface with a copy button, so a user who copies it and runs it without reviewing it first executes the injected commands on their own machine, under their own account.
An attacker requires privileges sufficient to set deployment group environment variables, while the resulting code execution occurs on the machine of whoever runs the generated command. The Kubernetes instructions are not affected, because they render the same values into a YAML manifest…
Source: NIST National Vulnerability Database NVD GitHub Advisory
References
- advisory osv.dev
- advisory github.com
- advisory nvd.nist.gov
- exploit github.com
- package hex.pm
- package github.com
- patch cna.erlef.org
- patch github.com
- patch github.com
- patch github.com
- web ghcr.io
- web github.com
- web repo.hex.pm
- web github.com