CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



GHSA-9CP7-J3F8-P5JX

GHSA-9CP7-J3F8-P5JX: Unauthenticated Path Traversal and Zip Slip in Daptin

Alon Barad
Alon Barad
Software Engineer

Apr 10, 2026·5 min read·30 visits

Executive Summary (TL;DR)

Daptin improperly sanitizes file names in archive extraction and file upload routines. This allows unauthenticated attackers to exploit Path Traversal and Zip Slip vulnerabilities to write arbitrary files to the host filesystem, potentially achieving full system compromise.

Daptin, a Backend-as-a-Service and headless CMS, contains a critical vulnerability where multiple file processing endpoints fail to sanitize user-supplied input. This flaw permits unauthenticated attackers to write arbitrary files outside intended directories, introducing severe risks including Remote Code Execution (RCE).

Vulnerability Overview

Daptin is a Backend-as-a-Service (BaaS) and headless CMS project. GHSA-9CP7-J3F8-P5JX details a critical vulnerability affecting file upload and archiving functionalities within the Daptin core. Multiple endpoints fail to properly sanitize user-supplied file paths and archive entries before performing filesystem operations.

This improper handling allows unauthenticated remote attackers to write arbitrary files outside intended directories. The vulnerability encompasses both classical Path Traversal (CWE-22) and Zip Slip (CWE-29) variants. The application exposes these unsafe functions across numerous handlers without requiring user authentication.

Successful exploitation yields unauthenticated arbitrary file write capabilities. This capability routinely leads to Remote Code Execution (RCE) depending on the environment configuration and the privilege level of the Daptin process.

Root Cause Analysis

The fundamental flaw originates from the application passing unsanitized user input directly to Go's filepath.Join and path.Join functions. These functions dictate the target destination for file write operations across various application modules. In Go, if the second argument to filepath.Join contains absolute paths or directory traversal sequences like ../../, the resulting path successfully escapes the intended base directory.

Daptin implemented this vulnerable pattern across multiple distinct subsystems. The unzip function within server/actions/action_cloudstore_file_upload.go joined a target directory with the unsanitized file.Name from ZIP entries. This represents a textbook Zip Slip vulnerability.

Other upload handlers utilized user-controlled parameters, specifically fileName and atPath, directly in target path construction. This included Base64 upload handlers, streaming handlers via AssetUploadHandler, and multipart metadata parsing routines. The conversion logic for CSV and XLS files similarly saved temporary files using unsanitized request metadata.

The integrated FTP server in server/ftp_server.go failed to restrict the OpenFile and GetFileInfo commands to the user's designated sandbox. Additionally, the SubsiteRequestHandler in server/subsite_handler.go improperly resolved paths for hosted sub-sites, extending the traversal risk to sub-site request handling.

Exploitation and Attack Methodology

Attackers exploit this vulnerability without authentication by targeting the vulnerable file processing endpoints. The attack requires crafting malicious HTTP requests or malicious archive files depending on the targeted handler. The endpoints perform no access control validation prior to evaluating the file paths.

For the Zip Slip vector, an attacker creates a ZIP archive containing file entries with traversal sequences in their names, such as ../../../../tmp/malicious.sh. The attacker then uploads this archive to the cloud store file upload endpoint. The application extracts the contents to the resolved, out-of-bounds locations on the filesystem.

For direct path traversal attacks, the attacker specifies malicious paths within query parameters or JSON body fields. An attacker supplies payloads like filename=../../../../home/user/.ssh/authorized_keys or atPath=../../etc/ to the vulnerable upload endpoints. The server subsequently writes the uploaded file content to the targeted system path.

The integrated FTP server provides an alternate exploitation route. Attackers use standard FTP clients to issue retrieval or storage commands with traversal payloads. This effectively bypasses the intended directory sandbox restrictions without requiring complex HTTP requests.

Patch Analysis

The maintainers addressed these vulnerabilities in commit 8d626bbb14f82160a08cbca53e0749f475f5742c. The patch implements a standardized input sanitization routine across all components interacting with the filesystem. This approach resolves the systemic reliance on unsafe join operations.

The remediation utilizes filepath.Clean() to normalize the input path and resolve internal traversal sequences safely. Following normalization, a recursive loop strips any leading traversal characters and path separators. This guarantees the resulting path remains relative to the intended directory structure.

// Sanitization logic introduced in the patch
entryName := filepath.Clean(file.Name)
for strings.HasPrefix(entryName, "..") {
    entryName = strings.TrimPrefix(strings.TrimPrefix(entryName, ".."), string(filepath.Separator))
}

For modules handling CSV/XLS conversions and schema handling, the patch enforces strict anchoring. The developers utilized filepath.Base() to discard all directory components entirely. This ensures the application only processes the final filename segment, strictly eliminating the possibility of directory traversal.

Impact Assessment

The successful execution of this vulnerability grants an attacker arbitrary file write privileges on the host filesystem. Attackers utilize this primitive to overwrite critical system files or inject malicious application code. This typically provides a direct escalation path to complete system compromise.

An attacker can overwrite SSH authorized keys in user home directories, granting persistent secure shell access to the host. Alternatively, the attacker can overwrite existing executable binaries or Daptin configuration files. This allows the attacker to alter application behavior or execute arbitrary commands under the application's user context.

If the Daptin instance runs with elevated privileges, the impact scales proportionally. Root execution allows the attacker to modify core operating system configurations, establishing a permanent and privileged foothold. The unauthenticated nature of the attack makes it highly critical for exposed internet-facing deployments.

Remediation Strategy

Organizations operating Daptin must upgrade to a version incorporating commit 8d626bbb14f82160a08cbca53e0749f475f5742c. The repository currently tracks this fix explicitly via commit history. Administrators should ensure they pull the latest main branch or build from an explicitly patched release.

If immediate upgrading is impossible, network administrators should deploy Web Application Firewall (WAF) rules to detect and block directory traversal sequences in HTTP request parameters. Specifically, rules should monitor filename and atPath parameters, as well as uploaded archive contents, for ../ patterns.

Organizations should also enforce the principle of least privilege on the Daptin service account. Ensure the process runs with an unprivileged user restricted to necessary application directories. This containment limits the scope of any successful file write operation, preventing system-wide compromise.

Official Patches

GitHub Advisory DatabaseOfficial Security Advisory
DaptinFix Commit

Fix Analysis (1)

Technical Appendix

CVSS Score
9.8/ 10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected Systems

Daptin Backend-as-a-ServiceDaptin Headless CMSIntegrated Daptin FTP Server Module

Affected Versions Detail

Product
Affected Versions
Fixed Version
Daptin
Daptin
< 8d626bbb14f82160a08cbca53e0749f475f5742c8d626bbb14f82160a08cbca53e0749f475f5742c
AttributeDetail
CWE IDCWE-22, CWE-29
Attack VectorNetwork
AuthenticationNone Required
ImpactArbitrary File Write / RCE
Exploit StatusProof of Concept available based on advisory data
CVSS Score9.8 Critical

MITRE ATT&CK Mapping

T1190Exploit Public-Facing Application
Initial Access
T1204.002Malicious File
Execution
CWE-22
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

The application fails to neutralize special elements within the pathname, allowing traversal sequences to access or modify out-of-bounds files.

Vulnerability Timeline

Patch Committed (Commit 8d626bbb)
2026-04-05

References & Sources

  • [1]GHSA-9CP7-J3F8-P5JX GitHub Advisory
  • [2]Daptin Patch Commit
  • [3]CWE-22 Definition
  • [4]CWE-29 Definition

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•23 minutes ago•CVE-2026-105749
6.5

CVE-2026-105749: Unbounded Table Attributes in Docling Backends Leads to Resource Exhaustion

An uncontrolled resource consumption vulnerability exists in the Docling document conversion library. Maliciously structured HTML, JATS, ODS, or BoxNote inputs containing table cells with excessively large 'rowspan' or 'colspan' attribute values trigger algorithmic complexity conditions. This allows unauthenticated remote attackers to initiate resource exhaustion states, crashing or hanging the target document processing pipeline while bypassing configured timeouts.

Amit Schendel
Amit Schendel
1 views•6 min read
•about 1 hour ago•CVE-2026-105748
4.3

CVE-2026-105748: Local File Inclusion and Arbitrary File Disclosure in Docling Document Parser

A Local File Inclusion (LFI) and Arbitrary File Disclosure vulnerability exists in Docling and Docling Slim versions >= 2.16.0 up to 2.131.0. When parsing serialized DoclingDocument structures using the JSON input format, the backend fails to restrict image URI schemes, allowing remote attackers to retrieve local files and verify path existence on the host system during embedded document export.

Amit Schendel
Amit Schendel
5 views•5 min read
•about 2 hours ago•CVE-2026-105744
7.5

CVE-2026-105744: Arbitrary File Read and Remote Code Execution in Docling Tectonic Engine

Docling, a tool for parsing and processing diverse document formats, is vulnerable to arbitrary file read, arbitrary file write, and potential remote code execution (RCE) in versions 2.94.0 through 2.131.0. The vulnerability occurs when applications configure Docling to use the Tectonic engine for rendering TikZ diagrams into images. Because the compilation did not restrict hazardous TeX primitives or sandbox the environment, an attacker can supply crafted documents containing malicious TikZ definitions to access or modify local files and execute arbitrary commands under the privileges of the processing application.

Amit Schendel
Amit Schendel
6 views•7 min read
•about 3 hours ago•CVE-2026-105743
4.0

CVE-2026-105743: Server-Side Request Forgery Guard Bypass in Docling Document Conversion Engine

An SSRF guard bypass vulnerability in the Docling document conversion engine allows unauthenticated attackers to bypass internal IP access controls. The vulnerability exists due to a DNS rebinding Time-of-Check Time-of-Use (TOCTOU) condition, URL authority parsing inconsistencies, and unvalidated network requests triggered during headless browser page rendering.

Amit Schendel
Amit Schendel
6 views•6 min read
•about 4 hours ago•CVE-2026-105742
3.7

CVE-2026-105742: Sensitive Custom Header Leakage in Docling Image Resource Loader

A technical analysis of CVE-2026-105742 (GHSA-p3fw-7699-7926), a sensitive information disclosure vulnerability in the Docling document processing library. Vulnerable versions of Docling indiscriminately forward custom HTTP headers, such as authentication tokens, to arbitrary third-party origins and during cross-origin redirects while fetching remote image assets from untrusted HTML and EPUB documents.

Alon Barad
Alon Barad
6 views•6 min read
•about 5 hours ago•CVE-2026-106121
4.9

CVE-2026-106121: Denial of Service via Infinite Loop in RabbitMQ Java Client JSON Parser

CVE-2026-106121 is a Denial of Service (DoS) vulnerability in the RabbitMQ Java Client library (amqp-client) affecting versions prior to 5.37.0. The vulnerability resides in the legacy, custom JSON-RPC parsing class com.rabbitmq.tools.json.JSONReader. When parsing malformed or truncated payloads ending within a quoted string or single-line comment, the parser's scanner enters an infinite loop. This occurs because the loop lacks an exit condition for the end-of-input sentinel character returned by the iterator, leading to either CPU exhaustion or a JVM crash from an OutOfMemoryError.

Amit Schendel
Amit Schendel
8 views•6 min read