CVE-2026-66297
Unescaped deployment environment variables in generated setup commands
Check your servers for CVE-2026-66297
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-66297 affects livebook, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Severity (CVSS)
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
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Attack requirements
- present: an attack works only when the target is in a certain state or configuration
- Privileges required
- high: the attacker needs an administrative account
- User interaction
- active: a user has to take a deliberate step, such as installing or running something
- Impact on the vulnerable system
- confidentiality none, integrity none, availability none: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality high, integrity high, availability high: what an attacker can read, change or stop beyond it
Exploitation
EPSS 2.14%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 82.5% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 6 Aug 2026):
- Exploitation
- poc: a proof of concept is public
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
livebook
package
livebook |
affected from 0.13.0, before 0.18.7 affected from 0.19.0, before 0.19.9
Other versions: unaffected
|
|
livebook
package
livebook-dev/livebook |
affected from 0.13.0, before 0.18.7 affected from 0.13.0-cuda12, before 0.18.7-cuda12 affected from 0.19.0, before 0.19.9 affected from 0.19.0-cuda12, before 0.19.9-cuda12
Other versions: unaffected
|
|
livebook
package
livebook-dev/livebook |
affected 7cf4af5c10ec645f55a10f30e5661c54f6a6b319 and later (unaffected from 0c2487326bbb37cb1eb43bb2f76eb93ad9f8fd6b, unaffected from b2a8416d149043132fe5a14ed611e0fefc9dc9cd, unaffected from f8fe9c62cb8bfc1dd0ccda4ea4a57c5e91563c85)
Other versions: unaffected
|
Is my server affected?
Find the installed version of livebook and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i livebook
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-66297 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-66297RHEL, Rocky, Alma, Fedora
rpm -q livebook
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-66297Alpine
apk list --installed | grep -i livebookWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-66297
trivy image --scanners vuln IMAGE | grep CVE-2026-66297
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Patches and release notes
- Fix commit 0c24873 in livebook-dev/livebook github.com · patch
- Fix commit b2a8416 in livebook-dev/livebook github.com · patch
- Fix commit f8fe9c6 in livebook-dev/livebook github.com · patch
Exploits and proof of concept
- Unescaped deployment environment variables in generated setup commands github.com · vendor advisory, related, exploit
Other references
- EEF CNA record for CVE-2026-66297 cna.erlef.org · related
- OSV record EEF-CVE-2026-66297 osv.dev · related
- Introducing commit 7cf4af5 in livebook-dev/livebook github.com · related
Source: the record CVE-2026-66297 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse