CVE-2026-66297: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in livebook-dev livebook
CVE-2026-66297 is an OS Command Injection vulnerability in livebook-dev livebook that allows command injection into generated deployment setup commands. The vulnerability arises because deployment group environment variable values are interpolated into Docker and Fly.io setup commands without proper shell escaping. This can lead to execution of arbitrary commands on the machine of the user who runs the generated command. An attacker must have privileges to set deployment group environment variables to exploit this issue. Kubernetes instructions are not affected due to proper escaping in YAML manifests. The vulnerability affects livebook versions from 0.13.0 before 0.18.7 and from 0.19.0 before 0.19.9.
AI Analysis
Technical Summary
The vulnerability in livebook-dev livebook (CVE-2026-66297) is an OS Command Injection (CWE-78) caused by improper neutralization of special elements used in OS commands. Specifically, the functions LivebookWeb.Hub.Teams.DeploymentGroupAgentComponent.docker_instructions/2 and fly_instructions/4 interpolate deployment group environment variable values directly into shell commands without shell escaping. These values are placed inside double-quoted shell words, but command substitutions like $(...) or backticks are evaluated by the shell, allowing arbitrary command execution. The generated commands are shown in the Livebook web interface with a copy button, so if a user copies and runs the command without review, injected commands execute under their user account. Exploitation requires the attacker to have privileges to set deployment group environment variables. Kubernetes deployment instructions are not vulnerable as they use YAML manifests with proper escaping. The affected versions are livebook 0.13.0 up to but not including 0.18.7, and 0.19.0 up to but not including 0.19.9.
Potential Impact
An attacker with privileges to set deployment group environment variables can inject arbitrary shell commands into deployment setup commands generated by livebook. These commands execute on the machine of the user who copies and runs the generated command, potentially leading to unauthorized code execution under that user's privileges. The vulnerability does not allow remote code execution on the server itself but relies on social engineering or user action to run the injected commands. Kubernetes deployment instructions are unaffected.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should carefully review any generated deployment commands before executing them, especially those copied from the Livebook web interface. Restrict privileges to set deployment group environment variables to trusted users only to reduce risk.
CVE-2026-66297: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in livebook-dev livebook
Description
CVE-2026-66297 is an OS Command Injection vulnerability in livebook-dev livebook that allows command injection into generated deployment setup commands. The vulnerability arises because deployment group environment variable values are interpolated into Docker and Fly.io setup commands without proper shell escaping. This can lead to execution of arbitrary commands on the machine of the user who runs the generated command. An attacker must have privileges to set deployment group environment variables to exploit this issue. Kubernetes instructions are not affected due to proper escaping in YAML manifests. The vulnerability affects livebook versions from 0.13.0 before 0.18.7 and from 0.19.0 before 0.19.9.
CVSS v4.0
Score 5.0medium
Affected software
livebook-dev
livebook
livebook-dev
livebook
livebook-dev
livebook
cpe:2.3:a:livebook-dev:livebook:*:*:*:*:*:*:*:*Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in livebook-dev livebook (CVE-2026-66297) is an OS Command Injection (CWE-78) caused by improper neutralization of special elements used in OS commands. Specifically, the functions LivebookWeb.Hub.Teams.DeploymentGroupAgentComponent.docker_instructions/2 and fly_instructions/4 interpolate deployment group environment variable values directly into shell commands without shell escaping. These values are placed inside double-quoted shell words, but command substitutions like $(...) or backticks are evaluated by the shell, allowing arbitrary command execution. The generated commands are shown in the Livebook web interface with a copy button, so if a user copies and runs the command without review, injected commands execute under their user account. Exploitation requires the attacker to have privileges to set deployment group environment variables. Kubernetes deployment instructions are not vulnerable as they use YAML manifests with proper escaping. The affected versions are livebook 0.13.0 up to but not including 0.18.7, and 0.19.0 up to but not including 0.19.9.
Potential Impact
An attacker with privileges to set deployment group environment variables can inject arbitrary shell commands into deployment setup commands generated by livebook. These commands execute on the machine of the user who copies and runs the generated command, potentially leading to unauthorized code execution under that user's privileges. The vulnerability does not allow remote code execution on the server itself but relies on social engineering or user action to run the injected commands. Kubernetes deployment instructions are unaffected.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should carefully review any generated deployment commands before executing them, especially those copied from the Livebook web interface. Restrict privileges to set deployment group environment variables to trusted users only to reduce risk.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-07-24T14:10:01.114Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a739c88bf8831d5396b300e
Added to database: 08/05/2026, 20:26:48 UTC
Last enriched: 08/13/2026, 17:34:35 UTC
Last updated: 09/17/2026, 22:01:37 UTC
Views: 51
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.