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 affecting versions 0.13.0 through before 0.18.7 and 0.19.0 through before 0.19.9. It arises from improper neutralization of special elements in deployment setup commands generated for Docker and Fly.io, allowing command injection via deployment group environment variables. The injected commands execute on the machine of the user who copies and runs the generated command from the Livebook web interface. Exploitation requires privileges to set deployment group environment variables. Kubernetes instructions are not affected due to different rendering with escaping.
AI Analysis
Technical Summary
The vulnerability in livebook-dev livebook occurs in the LivebookWeb.Hub.Teams.DeploymentGroupAgentComponent module, specifically in the docker_instructions/2 and fly_instructions/4 functions. These functions interpolate deployment group environment variable values directly into shell commands without proper shell escaping. Because the values are placed inside double-quoted shell words, an attacker can inject command substitutions (e.g., $(...) or backticks) that the shell evaluates. This leads to arbitrary command execution on the client machine when a user copies and runs the generated command. The vulnerability requires the attacker to have privileges to set deployment group environment variables. Kubernetes deployment instructions are unaffected as they use YAML manifests with proper escaping. The affected versions are from 0.13.0 before 0.18.7 and from 0.19.0 before 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 for Docker and Fly.io. These commands execute on the machine of the user who copies and runs the generated command from the Livebook web interface, potentially leading to command execution under the user's account. The vulnerability does not allow remote code execution on the server but relies on social engineering or user action to run the malicious command locally. Kubernetes deployment instructions are not vulnerable.
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 copying and executing them, especially those related to Docker and Fly.io setups. 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 affecting versions 0.13.0 through before 0.18.7 and 0.19.0 through before 0.19.9. It arises from improper neutralization of special elements in deployment setup commands generated for Docker and Fly.io, allowing command injection via deployment group environment variables. The injected commands execute on the machine of the user who copies and runs the generated command from the Livebook web interface. Exploitation requires privileges to set deployment group environment variables. Kubernetes instructions are not affected due to different rendering with escaping.
CVSS v4.0
Score 5.0medium
Affected software
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 occurs in the LivebookWeb.Hub.Teams.DeploymentGroupAgentComponent module, specifically in the docker_instructions/2 and fly_instructions/4 functions. These functions interpolate deployment group environment variable values directly into shell commands without proper shell escaping. Because the values are placed inside double-quoted shell words, an attacker can inject command substitutions (e.g., $(...) or backticks) that the shell evaluates. This leads to arbitrary command execution on the client machine when a user copies and runs the generated command. The vulnerability requires the attacker to have privileges to set deployment group environment variables. Kubernetes deployment instructions are unaffected as they use YAML manifests with proper escaping. The affected versions are from 0.13.0 before 0.18.7 and from 0.19.0 before 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 for Docker and Fly.io. These commands execute on the machine of the user who copies and runs the generated command from the Livebook web interface, potentially leading to command execution under the user's account. The vulnerability does not allow remote code execution on the server but relies on social engineering or user action to run the malicious command locally. Kubernetes deployment instructions are not vulnerable.
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 copying and executing them, especially those related to Docker and Fly.io setups. 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
- Remediation Level
- null
Threat ID: 6a739c88bf8831d5396b300e
Added to database: 08/05/2026, 20:26:48 UTC
Last enriched: 08/05/2026, 20:43:39 UTC
Last updated: 08/05/2026, 22:16:03 UTC
Views: 7
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.