Skip to main content
EPSS 1.9%top 22%

CVE-2026-66297: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in livebook-dev livebook

0
Medium
VulnerabilityCVE-2026-66297cvecve-2026-66297cwe-78
Published: 08/05/2026 (08/05/2026, 19:43:58 UTC)
Source: CVE Database V5
Vendor/Project: livebook-dev
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
High
User Interaction
Active
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
High
Subsq. Integrity
High
Subsq. Availability
High
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

Affected software

livebook-dev

livebook

Affected versions
>=0.13.0 <0.18.7>=0.19.0 <0.19.9

livebook-dev

livebook

Affected versions
>=0.13.0 <0.18.7>=0.19.0 <0.19.9>=0.13.0-cuda12 <0.18.7-cuda12>=0.19.0-cuda12 <0.19.9-cuda12

livebook-dev

livebook

livebook
pkg:hex/livebook
Affected versions
>=0.13.0 <0.18.7>=0.19.0 <0.19.9
GitHub Actionsmore threats →cve
livebook-dev/livebook
pkg:github/livebook-dev/livebook
CPE configurations
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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/13/2026, 17:34:35 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses