Direct naar de inhoud
⚡ Kritieke cyberalerts voor jouw sector & systemen — direct in je inbox. Aanmelden →
CVE's Videos Dagbriefing

← Terug naar CVE-database

CVE-2026-66881

HIGH · 8.1 CVSS Gepubliceerd: CWE-23

Beschrijving NL

Relative Path Traversal-kwetsbaarheid in livebook-dev livebook stelt een door aanvallers geschreven notebook in staat om een bestand met door aanvallers gecontroleerde inhoud naar een willekeurig pad te schrijven. Een .livemd-notitieblok kan file_entries-metagegevens declareren, waarbij elk item een naam draagt. Elk pad dat een bestandsinvoer maakt via de gebruikersinterface valideert die naam met Livebook.Notebook.validate_file_entry_name/2, waarvoor een platte bestandsnaam van alfanumerieke tekens, streepjes, onderstrepingstekens en punten vereist is, eindigend in een extensie. Het importpad is niet: Livebook.LiveMarkdown.Import.file_entry_metadata_to_attrs/1 in lib/livebook/live_markdown/import.ex ontleent de naam letterlijk aan de notebookbron. Voor een URL-type bestandsvermelding, lost Livebook.Session.file_entry_cache_file/2 in lib/livebook/session.ex die naam op onder de tijdelijke map van de sessie zonder te controleren of het resultaat erin blijft, en Livebook.FileSystem.Utils.resolve_unix_like_path/2 klapt de segmenten van de bovenliggende map in terwijl alleen de root van het bestandssysteem wordt vastgeklemd. Wanneer de inhoud van het item wordt aangevraagd en er geen kopie in de cache bestaat, haalt Livebook de URL van het item op en schrijft het antwoord naar het opgeloste pad, waarbij indien nodig bovenliggende mappen worden aangemaakt. De aanvaller controleert daarom zowel de bestemming als de inhoud van het geschreven bestand, dat overal kan landen waar het Livebook-proces kan schrijven. Dezelfde ontbrekende inperkingscontrole is aanwezig in Livebook.Session.to_attachment_file_entry/2. Een slachtoffer dat een door de aanvaller geleverd notitieblok opent en ervoor zorgt dat de invoer wordt opgehaald, activeert het schrijven binnen zijn eigen geverifieerde sessie; de aanvaller heeft geen account nodig op de doelinstantie. URL-ingangen worden ook niet onder notitieblokstempelquarantaine geplaatst bij het importeren, dus er wordt geen waarschuwing weergegeven. Dit nummer is van invloed op livebook: van 0.11.0 vóór 0.18.7 en van 0.19.0 vóór 0.19.9.

Origineel (Engels) tonen

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.

Vendors

Livebook

Affected products

Livebook

References