CVE-2026-66297
JSON

5.0medium

Unescaped deployment environment variables in generated setup commands

Severity
5.0medium CVSS:4.0 by EEF
Exploit likelihood
2.14% (higher than 82% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
EEF
Also known as
EEF-CVE-2026-66297GHSA-qpjc-w5mm-73mj

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.

Affected

Product or packageVersionsReported by
livebookfrom 0.13.0 before 0.18.7, from 0.19.0 before 0.19.9CVE List
livebook-dev/livebookfrom 0.13.0 before 0.18.7, from 0.13.0-cuda12 before 0.18.7-cuda12, from 0.19.0 before 0.19.9, from 0.19.0-cuda12 before 0.19.9-cuda12, from 7cf4af5c10ec645f55a10f30e5661c54f6a6b319 before *CVE List
livebook (Hex)from 0.13.0 before 0.18.7, from 0.19.0 before 0.19.9Erlang Ecosystem Foundation
https://github.com/livebook-dev/livebookfrom 7cf4af5c10ec645f55a10f30e5661c54f6a6b319 before 0c2487326bbb37cb1eb43bb2f76eb93ad9f8fd6b, before b2a8416d149043132fe5a14ed611e0fefc9dc9cd, before f8fe9c62cb8bfc1dd0ccda4ea4a57c5e91563c85Erlang Ecosystem Foundation
livebook livebookfrom 0.13.0 before 0.18.7, from 0.19.0 before 0.19.9NVD

All scores

EEF5.0medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:A/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H
Erlang Ecosystem FoundationNot scored CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:A/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H
NVD8.0high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Classification

CWE-78

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

Erlang Ecosystem Foundation

Summary

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.

NVD (es)

Neutralización Inadecuada de Elementos Especiales utilizados en un Comando de SO (Inyección de Comandos de SO) vulnerabilidad en livebook-dev livebook permite la inyección de comandos de configuración de despliegue generados. LivebookWeb.Hub.Teams.DeploymentGroupAgentComponent.docker_instructions/2 y LivebookWeb.Hub.Teams.DeploymentGroupAgentComponent.fly_instructions/4 en lib/livebook_web/live/hub/teams/deployment_group_agent_component.ex interpolan valores de variables de entorno del grupo de despliegue en los comandos de configuración de Docker y Fly.io generados sin escape de shell. Los valores se originan en la configuración del grupo de despliegue y llegan a los ’sinks’ a través de Livebook.Hubs.Dockerfile.online_docker_info/3. Ambos ’sinks’ colocan el valor dentro de una palabra de shell entre comillas dobles, por lo que un valor que contenga una sustitución de comando como $(...) o backticks es evaluado por el shell sin necesidad de salir de las comillas, y una comilla doble literal termina la palabra entre comillas y permite tokens arbitrarios adicionales. El comando generado se muestra en la interfaz web de Livebook con un botón de copiar, por lo que un usuario que lo copia y lo ejecuta sin revisarlo primero ejecuta los comandos inyectados en su propia máquina, bajo su propia cuenta. Un atacante requiere privilegios suficientes para establecer variables de entorno del grupo de despliegue, mientras que la ejecución de código resultante ocurre en la máquina de quien ejecuta el comando generado. Las instrucciones de Kubernetes no se ven afectadas, porque renderizan los mismos valores en un manifiesto YAML con escape en lugar de en un comando de shell. Este problema afecta a livebook: desde 0.13.0 antes de 0.18.7 y desde 0.19.0 antes de 0.19.9.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-66297 changed 2026-11-20CVE Terms of Use
Erlang Ecosystem FoundationEEF-CVE-2026-66297 changed 2026-11-25CC-BY-4.0
NVDCVE-2026-66297 changed 2026-11-20Public domain