CVE Professor
›
Back
CVE-2026-66881

CVE-2026-66881 — Livebook-dev Livebook (0.18.7) — CWE-23

HIGH CVSS 7 CVE.org

CVE-2026-66881 is a HIGH severity Path Traversal & Arbitrary File Read vulnerability (CWE-23) (CVSS 7.0/10) affecting Livebook-dev Livebook (0.18.7). Technical vector analysis shows that an attacker can exploit this flaw remotely over the network without authentication (PR:N) requiring user interaction, posing a direct security risk to affected deployments.

📄 Official NVD / MITRE Original Record Text

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.

Published 05.08.2026
ISO Date 2026-08-05
CVSS Version v4.0
Source CVE.org
CVSS v4.0 Vector Metrics
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 AV:N
Attack Complexity Low AC:L
Attack Reqs. None AT:N
Privileges Req. None PR:N
User Interaction Active UI:A
Vuln. Conf. None VC:N
Vuln. Integrity High VI:H
Vuln. Avail. Low VA:L
Subseq. Conf. None SC:N
Subseq. Integ. None SI:N
Subseq. Avail. None SA:N
AI Security Analysis & Remediation
🤖 Generating Deep AI Security Analysis…
Analyzing CVSS vector & CWE weakness structure…

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-66881
CVSS 7/10 · HIGH · 05.08.2026
CWE: CWE-23
Vector: 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
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🎯 WHAT IS THIS VULNERABILITY?
Path Traversal / LFI
Summary: 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 req…
Affected: livebook-dev:livebook, livebook-dev:livebook

⚡ ATTACK CHAIN
1. Test ../../../../etc/passwd in file parameters.
2. URL encode variants: ..%2F, ..%252F, null byte %00.
3. PHP LFI to RCE via log poisoning: inject PHP in User-Agent, include access log.
4. PHP wrappers: php://filter/convert.base64-encode/resource=config.php

🔧 Tools: LFISuite, ffuf, Burp Suite, dotdotpwn
🗺️ MITRE ATT&CK: T1083 (File and Directory Discovery), T1552 (Unsecured Credentials)

🌍 REAL WORLD IMPACT
Data can be modified or deleted.

🛡️ REMEDIATION
→ Apply vendor security update for livebook-dev:livebook.
→ Use realpath() canonicalization, implement allowlists.
→ Pre-patch: put service behind VPN or apply IP allowlist.
→ Add WAF rule, create IDS alert for anomalous traffic.

⚠️ URGENCY
⚠️ This week (7 days) — High risk, anonymous remote.

────────────────────────────────────────
[Kural Tabanlı Otomatik Güvenlik Analizi]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="livebook-dev livebook"
CVSS Score
7 / 10 · CVSS HIGH
Weakness Types (CWE)
CWE-23
Affected Products (2)
livebook-dev:livebook (0.18.7) livebook-dev:livebook (*)
Related CVEs
8.8
CVE-2026-133080
In JetBrains TeamCity before 2026.2.2, 2026.1.6 remote code execution was possible via Maven repository settin
7.5
CVE-2026-133024
In JetBrains TeamCity before 2026.2.1, 2026.1.5 remote code execution was possible via personal builds with ve
7.5
CVE-2026-133021
In JetBrains TeamCity before 2026.2.1, 2026.1.5 remote code execution was possible via Mercurial subrepository
7.2
CVE-2026-132898
In JetBrains TeamCity before 2026.2, 2026.1.4, 2025.11.8 arbitrary file write on the server was possible via K
9.9
CVE-2026-132233
In JetBrains TeamCity before 2026.1.3, 2025.11.7 remote code execution was possible via build attribute injec
8.8
CVE-2026-87790
Latvijas Valsts radio un televīzijas centrs (LVRTC) eParakstītājs 3.0 version 1.10.0-resolute allows an una