# CVE-2026-66297: Unescaped deployment environment variables in generated setup commands

- Severity: Medium 5.0 (CVSS:4.0, scored by EEF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.14%, higher than 82% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-05T19:43:58.068Z
- Modified: 2026-11-25T17:23:09.825Z
- Also known as: EEF-CVE-2026-66297, GHSA-qpjc-w5mm-73mj
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: EEF

## 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.

(As written by CVE List.)

## Affected

- livebook: from 0.13.0 before 0.18.7; from 0.19.0 before 0.19.9
- livebook-dev/livebook: from 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 *
- livebook (Hex): from 0.13.0 before 0.18.7; from 0.19.0 before 0.19.9
- https://github.com/livebook-dev/livebook: from 7cf4af5c10ec645f55a10f30e5661c54f6a6b319 before 0c2487326bbb37cb1eb43bb2f76eb93ad9f8fd6b; before b2a8416d149043132fe5a14ed611e0fefc9dc9cd; before f8fe9c62cb8bfc1dd0ccda4ea4a57c5e91563c85
- livebook livebook: from 0.13.0 before 0.18.7; from 0.19.0 before 0.19.9

## Every score

- EEF: CVSS:4.0 5.0 Medium `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`
- Erlang Ecosystem Foundation: CVSS:4.0 `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`
- NVD: CVSS:3.1 8.0 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/livebook-dev/livebook/security/advisories/GHSA-qpjc-w5mm-73mj> (exploit, advisory, patch, related, vendor-advisory)
- <https://cna.erlef.org/cves/CVE-2026-66297.html> (related, vendor-advisory, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-66297> (related, third-party-advisory)
- <https://github.com/livebook-dev/livebook/commit/7cf4af5c10ec645f55a10f30e5661c54f6a6b319> (related, web)
- <https://github.com/livebook-dev/livebook/commit/0c2487326bbb37cb1eb43bb2f76eb93ad9f8fd6b> (fix, patch)
- <https://github.com/livebook-dev/livebook/commit/b2a8416d149043132fe5a14ed611e0fefc9dc9cd> (fix, patch)
- <https://github.com/livebook-dev/livebook/commit/f8fe9c62cb8bfc1dd0ccda4ea4a57c5e91563c85> (fix, patch)
- <https://hex.pm/packages/livebook> (package)

## Sources

- CVE List: [CVE-2026-66297](https://www.cve.org/CVERecord?id=CVE-2026-66297), CVE Terms of Use, modified 2026-11-20
- Erlang Ecosystem Foundation: [EEF-CVE-2026-66297](https://osv.dev/vulnerability/EEF-CVE-2026-66297), CC-BY-4.0, modified 2026-11-25
- NVD: [CVE-2026-66297](https://nvd.nist.gov/vuln/detail/CVE-2026-66297), Public domain, modified 2026-11-20

---

Page: https://cve.day/CVE-2026-66297 · Whole record: https://cve.day/CVE-2026-66297.json · Rebuilt by cve.day 2026-11-25T22:59:31.180Z
