8.1
HIGH CVSS 3.1
CVE-2026-66881
Path traversal in imported file_entries name allows arbitrary file write via URL-type entry download
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.

INFO

Published Date :

Aug. 5, 2026, 8:17 p.m.

Last Modified :

Nov. 10, 2026, 6:17 p.m.

Remotely Exploit :

Yes !

Source :

6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Affected Products

The following products are affected by CVE-2026-66881 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Livebook livebook
1 Livebook-dev livebook
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 134c704f-9b21-4f2e-91b3-4a467353bcc0
CVSS 3.1 HIGH [email protected]
CVSS 4.0 HIGH 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
CVSS 4.0 HIGH 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Solution
Update Livebook to a version that addresses path traversal vulnerabilities. Apply patches if available.
  • Update Livebook to a version that addresses the vulnerability.
  • Apply vendor-supplied security patches or workarounds.
  • Review file handling and validation logic for similar issues.
  • Restrict file writing permissions for the Livebook process.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-66881 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-66881 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-66881 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-66881 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Nov. 10, 2026

    Action Type Old Value New Value
    Added Reference https://github.com/livebook-dev/livebook/security/advisories/GHSA-r4h8-2xpq-v48g
    Removed Reference https://github.com/livebook-dev/livebook/security/advisories/GHSA-r4h8-2xpq-v48g
    Removed Reference Type https://github.com/livebook-dev/livebook/security/advisories/GHSA-r4h8-2xpq-v48g Types: Exploit, Patch, Vendor Advisory
  • CVE Modified by 6b3ad84c-e1a6-4bf7-a703-f496b71e49db

    Nov. 10, 2026

    Action Type Old Value New Value
    Added Affected Affected value modified. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/66xxx/CVE-2026-66881.json">CVE-2026-66881</a>
    Added Reference https://cna.erlef.org/cves/CVE-2026-66881.html
    Added Reference https://github.com/livebook-dev/livebook/commit/1443dd23df6e7b9203b6797f0695a807aeb81dde
    Added Reference https://github.com/livebook-dev/livebook/commit/50f86982ebf36c22abeb379b55ec0f2859c83bb9
    Added Reference https://github.com/livebook-dev/livebook/commit/acf4cb8c0c79b89c795b180f061be7de2d8b5aa9
    Added Reference https://github.com/livebook-dev/livebook/commit/c02eb984f80a543c7a52b1d882c76f56aa5be743
    Added Reference https://github.com/livebook-dev/livebook/security/advisories/GHSA-r4h8-2xpq-v48g
    Added Reference https://osv.dev/vulnerability/EEF-CVE-2026-66881
    Removed Reference https://cna.erlef.org/cves/CVE-2026-66881.html
    Removed Reference https://github.com/livebook-dev/livebook/commit/1443dd23df6e7b9203b6797f0695a807aeb81dde
    Removed Reference https://github.com/livebook-dev/livebook/commit/50f86982ebf36c22abeb379b55ec0f2859c83bb9
    Removed Reference https://github.com/livebook-dev/livebook/commit/acf4cb8c0c79b89c795b180f061be7de2d8b5aa9
    Removed Reference https://github.com/livebook-dev/livebook/security/advisories/GHSA-r4h8-2xpq-v48g
    Removed Reference https://osv.dev/vulnerability/EEF-CVE-2026-66881
    Removed Reference Type https://cna.erlef.org/cves/CVE-2026-66881.html Types: Vendor Advisory
    Removed Reference Type https://github.com/livebook-dev/livebook/commit/1443dd23df6e7b9203b6797f0695a807aeb81dde Types: Patch
    Removed Reference Type https://github.com/livebook-dev/livebook/commit/50f86982ebf36c22abeb379b55ec0f2859c83bb9 Types: Patch
    Removed Reference Type https://github.com/livebook-dev/livebook/commit/acf4cb8c0c79b89c795b180f061be7de2d8b5aa9 Types: Patch
    Removed Reference Type https://github.com/livebook-dev/livebook/security/advisories/GHSA-r4h8-2xpq-v48g Types: Exploit, Patch, Vendor Advisory
    Removed Reference Type https://osv.dev/vulnerability/EEF-CVE-2026-66881 Types: Third Party Advisory
  • CVE Translated by [email protected]

    Oct. 24, 2026

    Action Type Old Value New Value
    Changed Translation Title: livebook de livebook-dev, Description: Una vulnerabilidad de salto de ruta relativo en livebook-dev livebook permite que un cuaderno creado por un atacante escriba un archivo con contenido controlado por el atacante en una ruta arbitraria. Un cuaderno .livemd puede declarar metadatos de file_entries, cada entrada con un nombre. Cada ruta que crea una entrada de archivo a través de la interfaz de usuario valida ese nombre con Livebook.Notebook.validate_file_entry_name/2, que requiere un nombre de archivo plano de caracteres alfanuméricos, guiones, guiones bajos y puntos, que termina en una extensión. La ruta de importación no lo hace: Livebook.LiveMarkdown.Import.file_entry_metadata_to_attrs/1 en lib/livebook/live_markdown/import.ex toma el nombre textualmente del código fuente del cuaderno. Para una entrada de archivo de tipo URL, Livebook.Session.file_entry_cache_file/2 en lib/livebook/session.ex resuelve ese nombre debajo del directorio temporal de la sesión sin verificar que el resultado permanezca dentro de él, y Livebook.FileSystem.Utils.resolve_unix_like_path/2 colapsa los segmentos de directorio padre mientras se limita solo a la raíz del sistema de archivos. Cuando se solicita el contenido de la entrada y no existe una copia en caché, Livebook obtiene la URL de la entrada y escribe el cuerpo de la respuesta en la ruta resuelta, creando directorios padre según sea necesario. El atacante, por lo tanto, controla tanto el destino como el contenido del archivo escrito, que puede terminar en cualquier lugar donde el proceso de Livebook pueda escribir. La misma verificación de contención faltante está presente en Livebook.Session.to_attachment_file_entry/2. Una víctima que abre un cuaderno proporcionado por un atacante y hace que se obtenga la entrada activa la escritura dentro de su propia sesión autenticada; el atacante no necesita una cuenta en la instancia de destino. Las entradas de tipo URL tampoco se colocan bajo cuarentena de sellado de cuadernos al importar, por lo que no se muestra ninguna advertencia. Este problema afecta a livebook: desde 0.11.0 antes de 0.18.7 y desde 0.19.0 antes de 0.19.9. Title: livebook de livebook-dev, Description: Una vulnerabilidad de salto de ruta relativo en livebook-dev livebook permite que un cuaderno creado por un atacante escriba un archivo con contenido controlado por el atacante en una ruta arbitraria. Un cuaderno .livemd puede declarar metadatos de file_entries, cada entrada con un nombre. Cada ruta que crea una entrada de archivo a través de la interfaz de usuario valida ese nombre con Livebook.Notebook.validate_file_entry_name/2, que requiere un nombre de archivo plano de caracteres alfanuméricos, guiones, guiones bajos y puntos, que termina en una extensión. La ruta de importación no lo hace: Livebook.LiveMarkdown.Import.file_entry_metadata_to_attrs/1 en lib/livebook/live_markdown/import.ex toma el nombre textualmente del código fuente del cuaderno. Para una entrada de archivo de tipo URL, Livebook.Session.file_entry_cache_file/2 en lib/livebook/session.ex resuelve ese nombre debajo del directorio temporal de la sesión sin verificar que el resultado permanezca dentro de él, y Livebook.FileSystem.Utils.resolve_unix_like_path/2 colapsa los segmentos de directorio padre mientras se limita solo a la raíz del sistema de archivos. Cuando se solicita el contenido de la entrada y no existe una copia en caché, Livebook obtiene la URL de la entrada y escribe el cuerpo de la respuesta en la ruta resuelta, creando directorios padre según sea necesario. El atacante, por lo tanto, controla tanto el destino como el contenido del archivo escrito, que puede terminar en cualquier lugar donde el proceso de Livebook pueda escribir. La misma verificación de contención faltante está presente en Livebook.Session.to_attachment_file_entry/2. Una víctima que abre un cuaderno proporcionado por un atacante y hace que se obtenga la entrada activa la escritura dentro de su propia sesión autenticada; el atacante no necesita una cuenta en la instancia de destino. Las entradas de tipo URL tampoco se colocan bajo cuarentena de sellado de cuadernos al importar, por lo que no se muestra ninguna advertencia. Este problema afecta a livebook: desde 0.11.0 antes de 0.18.7 y desde 0.19.0 antes de 0.19.9.
  • CVE Translated by [email protected]

    Oct. 23, 2026

    Action Type Old Value New Value
    Added Translation Title: livebook de livebook-dev, Description: Una vulnerabilidad de salto de ruta relativo en livebook-dev livebook permite que un cuaderno creado por un atacante escriba un archivo con contenido controlado por el atacante en una ruta arbitraria. Un cuaderno .livemd puede declarar metadatos de file_entries, cada entrada con un nombre. Cada ruta que crea una entrada de archivo a través de la interfaz de usuario valida ese nombre con Livebook.Notebook.validate_file_entry_name/2, que requiere un nombre de archivo plano de caracteres alfanuméricos, guiones, guiones bajos y puntos, que termina en una extensión. La ruta de importación no lo hace: Livebook.LiveMarkdown.Import.file_entry_metadata_to_attrs/1 en lib/livebook/live_markdown/import.ex toma el nombre textualmente del código fuente del cuaderno. Para una entrada de archivo de tipo URL, Livebook.Session.file_entry_cache_file/2 en lib/livebook/session.ex resuelve ese nombre debajo del directorio temporal de la sesión sin verificar que el resultado permanezca dentro de él, y Livebook.FileSystem.Utils.resolve_unix_like_path/2 colapsa los segmentos de directorio padre mientras se limita solo a la raíz del sistema de archivos. Cuando se solicita el contenido de la entrada y no existe una copia en caché, Livebook obtiene la URL de la entrada y escribe el cuerpo de la respuesta en la ruta resuelta, creando directorios padre según sea necesario. El atacante, por lo tanto, controla tanto el destino como el contenido del archivo escrito, que puede terminar en cualquier lugar donde el proceso de Livebook pueda escribir. La misma verificación de contención faltante está presente en Livebook.Session.to_attachment_file_entry/2. Una víctima que abre un cuaderno proporcionado por un atacante y hace que se obtenga la entrada activa la escritura dentro de su propia sesión autenticada; el atacante no necesita una cuenta en la instancia de destino. Las entradas de tipo URL tampoco se colocan bajo cuarentena de sellado de cuadernos al importar, por lo que no se muestra ninguna advertencia. Este problema afecta a livebook: desde 0.11.0 antes de 0.18.7 y desde 0.19.0 antes de 0.19.9.
  • Initial Analysis by [email protected]

    Aug. 10, 2026

    Action Type Old Value New Value
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
    Added CPE Configuration OR *cpe:2.3:a:livebook:livebook:*:*:*:*:*:*:*:* versions from (including) 0.19.0 up to (excluding) 0.19.9 *cpe:2.3:a:livebook:livebook:*:*:*:*:*:*:*:* versions from (including) 0.11.0 up to (excluding) 0.18.7
    Added Reference Type CISA-ADP: https://github.com/livebook-dev/livebook/security/advisories/GHSA-r4h8-2xpq-v48g Types: Exploit, Patch, Vendor Advisory
    Added Reference Type EEF: https://cna.erlef.org/cves/CVE-2026-66881.html Types: Vendor Advisory
    Added Reference Type EEF: https://github.com/livebook-dev/livebook/commit/1443dd23df6e7b9203b6797f0695a807aeb81dde Types: Patch
    Added Reference Type EEF: https://github.com/livebook-dev/livebook/commit/50f86982ebf36c22abeb379b55ec0f2859c83bb9 Types: Patch
    Added Reference Type EEF: https://github.com/livebook-dev/livebook/commit/acf4cb8c0c79b89c795b180f061be7de2d8b5aa9 Types: Patch
    Added Reference Type EEF: https://github.com/livebook-dev/livebook/security/advisories/GHSA-r4h8-2xpq-v48g Types: Exploit, Patch, Vendor Advisory
    Added Reference Type EEF: https://osv.dev/vulnerability/EEF-CVE-2026-66881 Types: Third Party Advisory
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Aug. 06, 2026

    Action Type Old Value New Value
    Added Reference https://github.com/livebook-dev/livebook/security/advisories/GHSA-r4h8-2xpq-v48g
    Added SSVC {'id': 'CVE-2026-66881', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-08-06T13:03:23.099180Z'}
  • New CVE Received by 6b3ad84c-e1a6-4bf7-a703-f496b71e49db

    Aug. 05, 2026

    Action Type Old Value New Value
    Added Affected [{'cpes': ['cpe:2.3:a:livebook-dev:livebook:*:*:*:*:*:*:*:*'], 'repo': 'https://github.com/livebook-dev/livebook', 'vendor': 'livebook-dev', 'modules': ['Elixir.Livebook.LiveMarkdown.Import', 'Elixir.Livebook.Session', 'Elixir.Livebook.FileSystem.Utils'], 'product': 'livebook', 'versions': [{'status': 'affected', 'version': '0.11.0', 'lessThan': '0.18.7', 'versionType': 'semver'}, {'status': 'affected', 'version': '0.19.0', 'lessThan': '0.19.9', 'versionType': 'semver'}], 'packageURL': 'pkg:hex/livebook', 'packageName': 'livebook', 'programFiles': ['lib/livebook/live_markdown/import.ex', 'lib/livebook/session.ex', 'lib/livebook/file_system/utils.ex'], 'collectionURL': 'https://repo.hex.pm', 'defaultStatus': 'unaffected', 'programRoutines': [{'name': "'Elixir.Livebook.LiveMarkdown.Import':file_entry_metadata_to_attrs/1"}, {'name': "'Elixir.Livebook.Session':file_entry_cache_file/2"}, {'name': "'Elixir.Livebook.Session':to_attachment_file_entry/2"}, {'name': "'Elixir.Livebook.FileSystem.Utils':resolve_unix_like_path/2"}]}, {'cpes': ['cpe:2.3:a:livebook-dev:livebook:*:*:*:*:*:*:*:*'], 'vendor': 'livebook-dev', 'modules': ['Elixir.Livebook.LiveMarkdown.Import', 'Elixir.Livebook.Session', 'Elixir.Livebook.FileSystem.Utils'], 'product': 'livebook', 'versions': [{'status': 'affected', 'version': '0.11.0', 'lessThan': '0.18.7', 'versionType': 'other'}, {'status': 'affected', 'version': '0.19.0', 'lessThan': '0.19.9', 'versionType': 'other'}, {'status': 'affected', 'version': '0.11.0-cuda12', 'lessThan': '0.18.7-cuda12', 'versionType': 'other'}, {'status': 'affected', 'version': '0.19.0-cuda12', 'lessThan': '0.19.9-cuda12', 'versionType': 'other'}], 'packageURL': 'pkg:oci/livebook?repository_url=ghcr.io%2Flivebook-dev', 'packageName': 'livebook-dev/livebook', 'programFiles': ['lib/livebook/live_markdown/import.ex', 'lib/livebook/session.ex', 'lib/livebook/file_system/utils.ex'], 'collectionURL': 'https://ghcr.io', 'defaultStatus': 'unaffected', 'programRoutines': [{'name': "'Elixir.Livebook.LiveMarkdown.Import':file_entry_metadata_to_attrs/1"}, {'name': "'Elixir.Livebook.Session':file_entry_cache_file/2"}, {'name': "'Elixir.Livebook.Session':to_attachment_file_entry/2"}, {'name': "'Elixir.Livebook.FileSystem.Utils':resolve_unix_like_path/2"}]}, {'cpes': ['cpe:2.3:a:livebook-dev:livebook:*:*:*:*:*:*:*:*'], 'repo': 'https://github.com/livebook-dev/livebook', 'vendor': 'livebook-dev', 'modules': ['Elixir.Livebook.LiveMarkdown.Import', 'Elixir.Livebook.Session', 'Elixir.Livebook.FileSystem.Utils'], 'product': 'livebook', 'versions': [{'status': 'affected', 'changes': [{'at': '1443dd23df6e7b9203b6797f0695a807aeb81dde', 'status': 'unaffected'}, {'at': 'acf4cb8c0c79b89c795b180f061be7de2d8b5aa9', 'status': 'unaffected'}, {'at': '50f86982ebf36c22abeb379b55ec0f2859c83bb9', 'status': 'unaffected'}], 'version': 'c02eb984f80a543c7a52b1d882c76f56aa5be743', 'lessThan': '*', 'versionType': 'git'}], 'packageURL': 'pkg:github/livebook-dev/livebook', 'packageName': 'livebook-dev/livebook', 'programFiles': ['lib/livebook/live_markdown/import.ex', 'lib/livebook/session.ex', 'lib/livebook/file_system/utils.ex'], 'collectionURL': 'https://github.com', 'defaultStatus': 'unaffected', 'programRoutines': [{'name': "'Elixir.Livebook.LiveMarkdown.Import':file_entry_metadata_to_attrs/1"}, {'name': "'Elixir.Livebook.Session':file_entry_cache_file/2"}, {'name': "'Elixir.Livebook.Session':to_attachment_file_entry/2"}, {'name': "'Elixir.Livebook.FileSystem.Utils':resolve_unix_like_path/2"}]}]
    Added 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.
    Added CVSS V4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
    Added CWE CWE-23
    Added Reference https://cna.erlef.org/cves/CVE-2026-66881.html
    Added Reference https://github.com/livebook-dev/livebook/commit/1443dd23df6e7b9203b6797f0695a807aeb81dde
    Added Reference https://github.com/livebook-dev/livebook/commit/50f86982ebf36c22abeb379b55ec0f2859c83bb9
    Added Reference https://github.com/livebook-dev/livebook/commit/acf4cb8c0c79b89c795b180f061be7de2d8b5aa9
    Added Reference https://github.com/livebook-dev/livebook/security/advisories/GHSA-r4h8-2xpq-v48g
    Added Reference https://osv.dev/vulnerability/EEF-CVE-2026-66881
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.