CVE-2026-66881

Path traversal in imported file_entries name allows arbitrary file write via URL-type entry download

7.0 high EPSS 0.53%

Published 5 Aug 2026 Updated 2 Dec 2026 CNA: EEF

Check your servers for CVE-2026-66881

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

Check my servers

Description

Relative Path Traversal vulnerability in livebook-dev livebook allows an attacker-authored notebook to write a file with attacker-controlled content to an arbitrary path.

A .livemd notebook can declare file_entries metadata, each entry carrying a name. Every path that creates a file entry through the user interface validates that name with Livebook.Notebook.validate_file_entry_name/2, which requires a flat filename of alphanumerics, dashes, underscores and dots, ending in an extension. The import path does not: Livebook.LiveMarkdown.Import.file_entry_metadata_to_attrs/1 in lib/livebook/live_markdown/import.ex takes the name verbatim from the notebook source.

For a URL-type file entry, Livebook.Session.file_entry_cache_file/2 in lib/livebook/session.ex resolves that name beneath the session's temporary directory without checking that the result stays inside it, and Livebook.FileSystem.Utils.resolve_unix_like_path/2 collapses parent-directory segments while clamping only at the filesystem root. When the entry's content is requested and no cached copy exists, Livebook fetches the entry's URL and writes the response body to the resolved path, creating parent directories as needed. The attacker therefore controls both the destination and the contents of the written file, which may land anywhere the Livebook process can write. The same missing containment check is present in Livebook.Session.to_attachment_file_entry/2.

A victim who opens an attacker-supplied notebook and causes the entry to be fetched triggers the write within their own authenticated session; the attacker needs no account on the target instance. URL-type entries are also not placed under notebook stamping quarantine on import, so no warning is shown.

This issue affects livebook: from 0.11.0 before 0.18.7 and from 0.19.0 before 0.19.9.

Severity (CVSS)

7.0 high CVSS 4.0 from EEF (CNA)
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N
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
none: an attack works without special conditions on the target
Privileges required
none: the attacker does not need an 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 high, availability low: what an attacker can read, change or stop in the vulnerable component
Impact on other systems
confidentiality none, integrity none, availability none: what an attacker can read, change or stop beyond it

Exploitation

EPSS 0.53%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 46.1% of all scored CVEs. Scores of 2 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-23 Relative Path Traversal

Affected products

As the CNA lists them.

ProductVersions
livebook
package livebook
affected from 0.11.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.11.0, before 0.18.7
affected from 0.11.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 c02eb984f80a543c7a52b1d882c76f56aa5be743 and later (unaffected from 1443dd23df6e7b9203b6797f0695a807aeb81dde, unaffected from 50f86982ebf36c22abeb379b55ec0f2859c83bb9, unaffected from acf4cb8c0c79b89c795b180f061be7de2d8b5aa9)
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-66881 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-66881

RHEL, Rocky, Alma, Fedora

rpm -q livebook
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-66881

Alpine

apk list --installed | grep -i livebook

With 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-66881
trivy image --scanners vuln IMAGE | grep CVE-2026-66881

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

Exploits and proof of concept

Other references

Source: the record CVE-2026-66881 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.