VAITP Dataset

← Back to the dataset

CVE-2026-129167

Path traversal in SeaDoc converter lets unauthenticated users run code via malicious ZIP import.

  • CVSS 9.2
  • CWE-36
  • Input Validation and Sanitization
  • Remote

Seafile SeaDoc converter 2.0.4 before 2.0.11 and 3.0.0 before 3.0.8 contains an absolute path traversal vulnerability that allows unauthenticated attackers holding a public share token to execute code. Attackers supply an absolute filename to /api/v1/confluence-to-wiki/ to extract a ZIP from download_url into the Python library path, then trigger the module's import via a file-convert request.

CVSS base score
9.2
Published
2026-11-13
OWASP
A04 Insecure Design
Orthogonal defect classification
Interface
Code defect classification
Missing Check
Category
Input Validation and Sanitization
Subcategory
Path Traversal
Accessibility scope
Remote
Impact
Arbitrary Code Execution
Affected component
Python
Fixed by upgrading
Yes

Solution

Upgrade Seafile SeaDoc Converter to version 2.0.11 (or later) or 3.0.8 (or later).

Vulnerable code sample

import os
import zipfile

def extract_shared_zip(download_url, filename):
    """Extract a zip from a public share token to the library path."""
    # Simulate download to a temporary file (omitted)
    zip_path = "/tmp/downloaded.zip"
    # VULNERABLE: extracting user‑controlled absolute path
    with zipfile.ZipFile(zip_path, 'r') as z:
        z.extract(filename, path=os.path.abspath(os.path.join(os.getcwd(), '..', 'seafile', 'libs')))

Patched code sample

import os
import zipfile

def extract_shared_zip(download_url, filename):
    """Extract a zip from a public share token to the library path."""
    # Simulate download to a temporary file (omitted)
    zip_path = "/tmp/downloaded.zip"
    # FIX: sanitize path to prevent absolute traversal
    target_dir = os.path.abspath(os.path.join(os.getcwd(), '..', 'seafile', 'libs'))
    safe_name = os.path.normpath(filename).lstrip(os.sep)
    with zipfile.ZipFile(zip_path, 'r') as z:
        z.extract(safe_name, path=target_dir)

Published fix

Public sources link this CVE to the changes below. The code samples above were generated to illustrate the defect; these links lead to the code the project actually changed.

  • Update apis.py (haiwen/seadoc-converter)
    seadoc_converter/server/apis.py · confluence_to_wiki

Cite this entry

@misc{vaitp:cve2026129167,
  title        = {{Path traversal in SeaDoc converter lets unauthenticated users run code via malicious ZIP import.}},
  author       = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
  year         = {2026},
  note         = {VAITP Python Vulnerability Dataset, entry CVE-2026-129167},
  howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-129167/}}
}

Download this entry as JSON Download the whole dataset

Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.

The supreme art of war is to subdue the enemy without fighting.

Sun Tzu – “The Art of War”

:: Shaping the future through research and ingenuity ::

Before you use the VAITP AI models

Please read and accept the following disclaimer:

By choosing "I understand and accept", you acknowledge that you understand and agree to these terms.