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·23 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

•about 2 hours ago•CVE-2026-53766
6.1

CVE-2026-53766: Workspace Boundary Bypass in chrome-devtools-mcp via Symbolic Link Resolution Failure

A workspace boundary bypass vulnerability exists in the Chrome DevTools for Agents (chrome-devtools-mcp) Model Context Protocol (MCP) server from version 0.24.0 up to 1.1.0. The vulnerability allows an agent or malicious workspace containing symbolic links to read or modify arbitrary files outside the configured project workspace root directory. This occurs because the path validation function resolves paths lexically rather than physically.

Alon Barad
Alon Barad
1 views•7 min read
•about 3 hours ago•CVE-2026-56677
8.6

CVE-2026-56677: Unauthenticated Server-Side Request Forgery in 9Router OIDC Test Endpoint

A high-severity security vulnerability exists in 9Router, an AI router and token saver dashboard. When dashboard authentication features are disabled or left in default configurations, the application exposes administrative testing routines directly to the public internet. Unauthenticated network adversaries can exploit the OIDC configuration validation endpoint to initiate arbitrary HTTP requests, routing unauthorized traffic to local loops, adjacent container ports, and cloud resource metadata interfaces.

Amit Schendel
Amit Schendel
2 views•5 min read
•about 4 hours ago•CVE-2026-64849
9.3

CVE-2026-64849: Server-Side Request Forgery (SSRF) in MLflow Webhooks via DNS Rebinding

CVE-2026-64849 is a critical Server-Side Request Forgery (SSRF) vulnerability affecting MLflow tracking servers prior to version 3.15.0. It allows unauthenticated remote attackers to bypass outbound request destination filters using DNS rebinding or HTTP redirects. This exposure risks compromising sensitive cloud infrastructure metadata and internal microservices.

Alon Barad
Alon Barad
3 views•5 min read
•about 5 hours ago•CVE-2026-69146
6.5

CVE-2026-69146: Missing Authorization Bypass in MLflow Basic Authentication Middleware

This technical report details a missing authorization vulnerability (CVE-2026-69146 / GHSA-3p64-6gvh-82v5) affecting the MLflow platform from version 3.13.0 to 3.15.0. When MLflow is configured with the built-in basic-auth plugin, authenticated users can bypass run-level UPDATE authorization checks, enabling unauthorized dataset and model lineage metadata injection.

Alon Barad
Alon Barad
2 views•7 min read
•about 6 hours ago•CVE-2026-69148
7.1

CVE-2026-69148: Broken Object Level Authorization (BOLA) in MLflow Model Registry

MLflow prior to version 3.15.0 fails to perform proper authorization checks when registering model versions, allowing authenticated users with access to a registered model to link and access artifacts from runs and models belonging to other users without authorization.

Amit Schendel
Amit Schendel
5 views•7 min read
•about 7 hours ago•CVE-2026-59893
7.5

CVE-2026-59893: Regular Expression Denial of Service in sqlparse Lexer

A high-severity Regular Expression Denial of Service (ReDoS) vulnerability in the sqlparse Python library prior to version 0.6.0 allows unauthenticated remote attackers to trigger CPU exhaustion and application denial of service via crafted SQL inputs containing unmatched dollar-quoted literals or unclosed multiline comments.

Alon Barad
Alon Barad
6 views•6 min read