Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach exposed Portabase TUS endpoint
-
DeliveryPOST create with traversal X-File-Path header
-
ExploitServer resolves path outside uploads dir
-
ExecutionPATCH uploads attacker key bytes
-
Persistrename overwrites master_key.bin
-
ImpactEncrypted backups destroyed or attacker-key substituted
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires that the Portabase Community Edition instance (version ≤ 1.21.1) be network-reachable by the attacker AND that the internal TUS webhook/upload path (/tus/files/ and /api/tus/hooks) be exposed to untrusted networks - in vulnerable versions this endpoint required no authentication (CWE-306) and passed the attacker-controlled X-File-Path header to path.join() without sanitization. No credentials, user interaction, or special product configuration are needed on a default exposed instance. Limiting factors: the instance must be reachable from the attacker's network, so deployments kept behind a reverse proxy that blocks /api/tus/hooks and /tus/ for untrusted networks, or not exposed to the internet, are not exploitable; the advisory states there is no configuration-only fix for the traversal itself and upgrading to 1.21.2 is required for complete remediation. |
| Impact | This is a genuine high-priority issue, not a CVSS-inflated paper risk. The provided CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, 9.8) describes an unauthenticated, network-reachable, low-complexity flaw requiring no user interaction, and the GHSA advisory corroborates every one of those metrics with a concrete two-request exploit path against the TUS endpoint. The vuln.today decision label is 'act_now', which aligns with the CVSS severity and with CWE-306 (missing authentication) compounding CWE-22 (path traversal). The advisory includes a full working proof-of-concept (curl commands overwriting /data/private/keys/master_key.bin), so exploitation is well-documented and trivial to reproduce; however, the input does not state KEV status (treat as not-listed) and provides NO EPSS score and NO SSVC automatable/technical-impact breakdown, so widespread opportunistic exploitation cannot be confirmed from the data - the risk is driven by exploit simplicity and public PoC detail rather than by any observed in-the-wild activity. The main mitigating real-world factor is exposure: only Portabase Community Edition instances up to 1.21.1 that are reachable by an untrusted network are affected, so an instance kept off the public internet is not exploitable despite the critical score. |
| Exploit ScenarioDerived | An unauthenticated attacker who can reach an exposed Portabase instance (≤1.21.1) sends a TUS create request with a malicious 'X-File-Path: ../keys/master_key.bin' header, then a PATCH request uploading attacker-chosen bytes, overwriting the AES-256-GCM master key. This either renders all previously encrypted backups permanently unreadable (destructive DoS) or substitutes an attacker-known key so data later encrypted under it can be decrypted. A complete working PoC (two curl commands) is published in the GHSA advisory, making reproduction trivial given the AV:N/AC:L/PR:N/UI:N profile. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 11, 2026
Unauthenticated path traversal in self-hosted Portabase Community Edition through 1.21.1 lets remote attackers overwrite arbitrary files under the private data directory, most critically /data/private/keys/master_key.bin, the AES-256-GCM master key, via the TUS upload webhook. Overwriting that key makes every backup encrypted with the original key permanently unreadable, and an attacker who writes their own key material can decrypt data subsequently encrypted under the attacker-known key. Exploitation requires the instance to be reachable from an untrusted network and the /tus/files/ and /api/tus/hooks endpoints to be exposed; no credentials or user interaction are needed (CVSS 9.8, PR:N), the risk is assessed as genuine rather than CVSS-inflated, and the vuln.today decision label is act_now. A public PoC reference (a two-request curl sequence) exists in the GitHub advisory; it is not verified as working exploit code, and no CISA KEV listing is present in the supplied data.
RemediationAI
Upgrade to Portabase 1.21.2 or later, which is the vendor-released patch and the only complete fix for the traversal; the advisory states there is no configuration-only fix, so upgrading is required. For instances that cannot be upgraded immediately, the vendor's workaround is to block external access to /api/tus/hooks and /tus/ at the reverse proxy for untrusted networks, and to avoid exposing the instance directly to the internet; the 1.21.2 nginx configuration implements the first of these with a location = /api/tus/hooks block that denies all and returns 404, leaving the internal webhook callable only by tusd over loopback. The trade-off of the proxy block is that only tusd's loopback traffic may reach the hook, so external or non-loopback integrations that post to that path will stop working, and any agent or client that reaches /tus/ from an untrusted network will be cut off until the instance is upgraded. The patch also enforces a fixed path pattern (backups/YYYY-MM-DD/<name>) and per-call backup-record authorization, so deployments that retest after upgrading should confirm their agents send the X-Generated-Id and X-Backup-Storage-Id headers. References: https://github.com/Portabase/portabase/security/advisories/GHSA-7697-vf3j-253j, https://github.com/Portabase/portabase/pull/355, https://github.com/Portabase/portabase/commit/8dcb406790728fbdbf758ec88bf000af79498fc1 and https://github.com/Portabase/portabase/releases/tag/1.21.2.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Portabase is a database backup and restore tool covering PostgreSQL, MySQL, MsSQL, MariaDB, Firebird, SQLite, MongoDB, Redis, files and Docker volumes, shipped as a Next.js application that receives resumable uploads from the tusd server through an internal webhook at app/api/tus/hooks/route.ts. The root cause is CWE-22 path traversal compounded by CWE-306 missing authentication for a critical function: the handler read the attacker-controlled X-File-Path request header and passed it directly to path.join(uploadDir, filePath) followed by fs.renameSync, so a value such as ../keys/master_key.bin resolved outside the uploads directory and relocated the staged upload over the master key. Because the TUS upload endpoint /tus/files/ required no authentication, the webhook could be driven by any unauthenticated client with a POST to create the upload and a PATCH to write the payload. The 1.21.2 fix in PR #355 adds a strict whitelist regex (^backups/\d{4}-\d{2}-\d{2}/[A-Za-z0-9._-]+$) plus a path.resolve/path.relative containment check that rejects traversal and absolute paths with HTTP 400, binds each webhook call to an existing agent-owned backup record matched through X-Generated-Id and X-Backup-Storage-Id (forged or unauthenticated calls get HTTP 403), and blocks /api/tus/hooks at the bundled nginx reverse proxy so only loopback tusd can reach it. The impact is destructive rather than data-exfiltration by default, but control of the master key value also undermines the confidentiality of data encrypted after the overwrite, since the key is used for AES-256-GCM encryption of backups.
Know when Portabase gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Unauthenticated network endpoint with no sanitization gives AV:N/AC:L/PR:N/UI:N; key overwrite destroys backups (A:H), tampers files (I:H), and an attacker-known key enables later decryption (C:H).
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
Portabase is a database backup and restore tool for PostgreSQL, MySQL, MsSQL, MariaDB, Firebird SQL, SQLite, MongoDB, Redis, Files and Docker Volume. Prior to version 1.21.2, a path traversal in the TUS upload webhook handler (app/api/tus/hooks/route.ts) allowed an unauthenticated attacker to overwrite arbitrary files under the private data directory, including /data/private/keys/master_key.bin (the AES-256-GCM master key). This issue has been patched in version 1.21.2.
Articles & Coverage 4
Technical POC Analysis
CWE-22 path traversal in app/api/tus/hooks/route.ts.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A critical unauthenticated path traversal vulnerability in self-hosted Portabase Community Edition up to version 1.21.1 allows remote attackers to overwrite the AES-256-GCM master key file, permanently destroying access to all encrypted backups and enabling decryption of future data. This impacts any organization running the exposed instance, compromising backup integrity and data confidentiality across the enterprise.
No vendor-released patch identified at time of analysis. Interim mitigations: restrict network access to TUS endpoints, deploy WAF, monitor file integrity of master key, and isolate affected instances.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
EUVD-2026-124051
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB