{"id":"EUVD-2026-44804","revision":null,"records":[{"revision":"983c4980517649f58e21d867de88238c","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-55410","aliases":[],"title":"NocoBase backup restore schema name allows command injection","description":"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.","state":0,"publishedAt":"2026-07-15T20:19:54.632+00:00","modifiedAt":"2026-07-18T01:52:49.269+00:00","affected":[{"ecosystem":"Vendor product","name":"nocobase","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"nocobase\",\n                    \"product\": \"nocobase\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 2.1.19\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:H/A:H","score":6.7,"severity":"MEDIUM"}],"references":["https://github.com/nocobase/nocobase/security/advisories/GHSA-p853-83gj-wjj3","https://github.com/nocobase/nocobase/commit/0e1aba1b7b112ffc841588963f7343c00edd9806","https://github.com/nocobase/nocobase/releases/tag/v2.1.19"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-55410","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-55410","identifiers":["CVE-2026-55410"]},"retained":false,"historicalAffected":[]},{"revision":"864a9a7688944c9cbb706fee3f8a7cfa","observedAt":"2026-11-19T22:23:50.759+00:00","statement":{"source":"euvd","id":"EUVD-2026-44804","aliases":["CVE-2026-55410","GHSA-p853-83gj-wjj3"],"title":"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 …","description":"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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:H/A:H","score":6.7,"severity":null}],"references":["https://github.com/nocobase/nocobase/security/advisories/GHSA-p853-83gj-wjj3","https://github.com/nocobase/nocobase/commit/0e1aba1b7b112ffc841588963f7343c00edd9806","https://github.com/nocobase/nocobase/releases/tag/v2.1.19"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-44804","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Jul 15, 2026, 8:19:54 PM","dateUpdated":"Jul 18, 2026, 1:52:49 AM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-44804","identifiers":["EUVD-2026-44804","CVE-2026-55410","GHSA-p853-83gj-wjj3"]},"retained":false,"historicalAffected":[]},{"revision":"573110e1c1c64db4bba2961a06f65d00","observedAt":"2026-10-25T13:17:34.255+00:00","statement":{"source":"nvd","id":"CVE-2026-55410","aliases":[],"title":"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 …","description":"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.","state":0,"publishedAt":"2026-07-15T21:16:55.183+00:00","modifiedAt":"2026-07-18T02:17:10.037+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:H/A:H","score":6.7,"severity":"MEDIUM"}],"references":["https://github.com/nocobase/nocobase/commit/0e1aba1b7b112ffc841588963f7343c00edd9806","https://github.com/nocobase/nocobase/releases/tag/v2.1.19","https://github.com/nocobase/nocobase/security/advisories/GHSA-p853-83gj-wjj3"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-55410","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Deferred","weaknesses":["CWE-78"],"productCriteria":[],"sourceDates":{"published":"2026-07-15T21:16:55.183","lastModified":"2026-07-18T02:17:10.037"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-55410","identifiers":["CVE-2026-55410"]},"retained":false,"historicalAffected":[]},{"revision":"affe8d3c1a854056821e011340a04a0b","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-p853-83gj-wjj3","aliases":["CVE-2026-55410"],"title":"NocoBase backup restore schema name allows command injection","description":"### Summary\nNocoBase `@nocobase/plugin-backups` 2.0.57 restores PostgreSQL backups by interpolating the backup metadata schema name into shell command strings that are executed with Node.js `child_process.exec()`. A backup-management user who can restore an uploaded PostgreSQL backup with forced schema restore can place shell metacharacters in `_metadata.json` under `database.schema`, causing arbitrary commands to execute as the NocoBase server process during restore.\n\nThe vulnerable plugin is included in the default `@nocobase/preset-nocobase` package and is guarded by the backup-management ACL snippet (`backups:*` / `backup:*`). This is not unauthenticated; the attacker must have backup restore privileges or equivalent access to the restore API/CLI.\n\n### Details\nAffected product evidence:\n- Ecosystem/package: npm package `@nocobase/plugin-backups` from `packages/plugins/@nocobase/plugin-backups/package.json`.\n- Tested vulnerable version: `2.0.57` (`packages/plugins/@nocobase/plugin-backups/package.json:1-16`).\n- Tested commit: `e03d267362b3426f484c28783020b4a2a08911e8`.\n- Default/common inclusion: `@nocobase/preset-nocobase` depends on and lists `@nocobase/plugin-backups` 2.0.57 as built in (`packages/presets/nocobase/package.json:22-24`, `packages/presets/nocobase/package.json:115-128`).\n- Affected range estimate: at least the tested `2.0.57` checkout. Earlier/later versions were not tested.\n- Patched version: unknown/not available in this local checkout.\n\nSource-to-sink path:\n- The plugin registers backup-management snippets for `backups:*` and `backup:*`, so the restore API is intended for roles granted backup-management permissions (`packages/plugins/@nocobase/plugin-backups/src/server/plugin.ts:51-59`).\n- The `backup` restore-upload action accepts request body/query `force` and passes it as `forceSchemaRestore` to `RestoreManager.restore()` (`packages/plugins/@nocobase/plugin-backups/src/server/resourcers/backup-cli.ts:40-42`, `packages/plugins/@nocobase/plugin-backups/src/server/resourcers/backup-cli.ts:200-211`).\n- `RestoreManager` decompresses the uploaded backup archive, reads `_metadata.json`, and parses attacker-controlled JSON metadata (`packages/plugins/@nocobase/plugin-backups/src/server/managers/restore.ts:203-215`, `packages/plugins/@nocobase/plugin-backups/src/server/managers/restore.ts:257-267`).\n- When `forceSchemaRestore` is true and the database dialect is PostgreSQL, the schema-mismatch check is skipped (`packages/plugins/@nocobase/plugin-backups/src/server/managers/restore.ts:270-300`). Existing tests confirm forced schema restore intentionally allows a metadata schema mismatch (`packages/plugins/@nocobase/plugin-backups/src/server/__tests__/managers/restore.test.ts:336-356`) and that the API passes `forceSchemaRestore: true` when `force=true` is supplied (`packages/plugins/@nocobase/plugin-backups/src/server/__tests__/managers/restore.test.ts:377-409`).\n- The parsed `metadata.database.schema` is passed into `this.#dbAdapter.restore(path.join(extractedDir, dbFile), metadata.database.schema)` (`packages/plugins/@nocobase/plugin-backups/src/server/managers/restore.ts:427-448`).\n- For PostgreSQL, if the backup schema differs from the target schema, `PostgresAdapter.restore()` assigns `srcSchema = schema || 'public'` and builds `pgRestoreCommand` using `-n ${srcSchema}` with no quoting or argument array (`packages/plugins/@nocobase/plugin-backups/src/server/adapters/database.ts:350-420`).\n- `#restoreSchema()` also interpolates `srcSchema` and `targetSchema` directly into SQL strings and then calls `run(pgRestoreCommand, ...)` (`packages/plugins/@nocobase/plugin-backups/src/server/adapters/database.ts:423-451`).\n- `run()` executes the assembled string through `child_process.exec()`, which invokes a shell (`packages/plugins/@nocobase/plugin-backups/src/server/adapters/database.ts:1-31`).\n\nA schema value such as `safe; touch /tmp/nocobase-cve-marker #` produces a restore command of this form:\n\n```text\npg_restore -U u -h localhost -p 5432 -n safe; touch /tmp/nocobase-cve-marker # -d db --clean --if-exists --no-owner -j 1 /tmp/backup-data\n```\n\nThe semicolon terminates the intended `pg_restore` command and starts a new shell command.\n\nFalse-positive screening:\n- This report does not claim unauthenticated exploitation. The route is gated by backup-management permissions through the registered ACL snippet.\n- The older `backups.upload` resource path was reviewed and does not pass `forceSchemaRestore`; the directly confirmed force path is the `backup.restoreUpload` / backup-CLI API path (`packages/plugins/@nocobase/plugin-backups/src/server/resourcers/backups.ts:54-77`, `packages/plugins/@nocobase/plugin-backups/src/server/resourcers/backup-cli.ts:200-211`).\n- The schema mismatch check blocks mismatched metadata by default, but it is deliberately bypassed for PostgreSQL when the supported force option is true.\n- The command injection is in the shell command itself before any PostgreSQL connection or valid backup file is required; the safe PoC proves shell metacharacter execution locally without connecting to a database.\n- The finding is not based on existing reports or generated writeups.\n\n### PoC\nThe following local-only PoC renders the same vulnerable `pg_restore` command shape built by `PostgresAdapter.restore()` and executes it through Node.js `child_process.exec()`, the sink used by the plugin. It uses a harmless marker file under `/tmp`, does not contact external services, and cleans up after itself.\n\nFrom a clean checkout of the tested commit:\n\n```bash\ncd nocobase\nrm -f /tmp/nocobase-cve-marker\nnode - <<'NODE'\nconst { exec } = require('child_process');\n\nconst schemaFromBackupMetadata = 'safe; touch /tmp/nocobase-cve-marker #';\nconst command = `pg_restore -U u -h localhost -p 5432 -n ${schemaFromBackupMetadata} -d db --clean --if-exists --no-owner -j 1 /tmp/backup-data`;\n\nexec(command, () => {\n  const fs = require('fs');\n  console.log(fs.existsSync('/tmp/nocobase-cve-marker') ? 'marker-created' : 'marker-missing');\n  fs.rmSync('/tmp/nocobase-cve-marker', { force: true });\n});\nNODE\n```\n\nObserved output in this environment:\n\n```text\nmarker-created\n```\n\nExpected vulnerable output: `marker-created`, proving the schema value starts a second shell command.\n\nNegative/control case: replace `schemaFromBackupMetadata` with `safe_schema`; the same harness should print `marker-missing` because no shell metacharacter starts the `touch` command.\n\nMaintainer-runnable application-level trigger:\n1. Run NocoBase 2.0.57 with PostgreSQL and the built-in `@nocobase/plugin-backups` enabled.\n2. Use a role granted the backup-management snippet/actions (`backups:*` / `backup:*`).\n3. Create a NocoBase backup archive containing a `data` member and `_metadata.json` with matching dialect/table settings but `database.schema` set to `safe; touch /tmp/nocobase-cve-marker #`.\n4. Restore the uploaded backup through the `backup` restore-upload path with `force=true` so PostgreSQL schema mismatch is allowed.\n5. Vulnerable behavior: `/tmp/nocobase-cve-marker` exists on the server after restore begins, even if `pg_restore` or database connection later fails.\n6. Cleanup: remove `/tmp/nocobase-cve-marker` and discard the test database/container.\n\n### Impact\nA user with backup restore privileges can execute arbitrary shell commands as the NocoBase server OS user. In a typical server or container deployment, this can read application configuration and environment secrets, modify application files or database backups, run network clients from the server, and disrupt service availability.\n\nThe required application privilege is high because backup restore is an administrative operation. However, backup-management permission is still an application-level role boundary; it should not imply arbitrary operating-system command execution.\n\n### Suggested remediation\nDo not execute database tools through shell-interpreted command strings. Use `spawn()` or `execFile()` with an argument array for `pg_restore`, `psql`, `pg_dump`, `mysql`, and related tools. Validate PostgreSQL schema identifiers from backup metadata against PostgreSQL identifier rules or quote them using the database driver's identifier-quoting facilities before using them in SQL.\n\nFor this specific path:\n- Pass `pg_restore` arguments as an array, for example `['-U', username, '-h', host, '-p', String(port), '-n', srcSchema, '-d', database, ...]`.\n- Reject schema names containing shell metacharacters, quotes, whitespace, comments, or characters outside accepted PostgreSQL identifier syntax unless they are safely handled as identifiers.\n- Replace dynamic SQL string interpolation in `#restoreSchema()` with identifier-safe quoting (`format('%I', ...)` in PostgreSQL or equivalent server-side parameters) and string-literal escaping where literals are required.\n- Add regression tests that restore a backup whose metadata schema contains `; touch /tmp/should-not-exist #` and assert no marker file is created and the request is rejected.","state":0,"publishedAt":"2026-08-20T18:30:15+00:00","modifiedAt":"2026-08-20T18:45:17.5849261+00:00","affected":[{"ecosystem":"npm","name":"@nocobase/plugin-backups","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.1.19"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:H/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/nocobase/nocobase/security/advisories/GHSA-p853-83gj-wjj3","https://nvd.nist.gov/vuln/detail/CVE-2026-55410","https://github.com/nocobase/nocobase/commit/0e1aba1b7b112ffc841588963f7343c00edd9806","https://github.com/nocobase/nocobase","https://github.com/nocobase/nocobase/releases/tag/v2.1.19"],"sourceUrl":"https://github.com/advisories/GHSA-p853-83gj-wjj3","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-p853-83gj-wjj3","identifiers":["GHSA-p853-83gj-wjj3","CVE-2026-55410"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-21T13:15:52.3396253+00:00","complete":true,"records":1790,"lastAttemptAt":"2026-11-21T13:15:52.3396253+00:00","lastSuccessAt":"2026-11-21T13:15:52.5501489+00:00","error":null,"lastVerifiedAt":"2026-11-21T13:15:52.5501497+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-1d6c61c44cf3e269b6d60ed2fe0a3aa1f7e55445c7f170f16f2fa063bbf73db3-534ab7fab94a24ceeeda8a968084314d4415c08b69725fb573e64857dc73d8bc","complete":true,"records":430136,"lastAttemptAt":"2026-11-21T13:15:50.8990435+00:00","lastSuccessAt":"2026-11-21T13:15:50.8531634+00:00","error":null,"lastVerifiedAt":"2026-11-21T13:15:50.8990435+00:00","snapshotPublishedAt":"2026-11-21T12:30:29+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-d269c3f23f5e41e2b86b9220678db151","complete":false,"records":13919,"lastAttemptAt":"2026-11-21T13:26:00.5234106+00:00","lastSuccessAt":"2026-11-21T13:26:00.512+00:00","error":"330 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-21T13:26:00.512+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13624,"expectedIdentifiers":13967,"failedIdentifiers":330},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-21T13:15:52.3396253+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-21T13:15:52.3396253+00:00","lastSuccessAt":"2026-11-21T13:15:52.5508663+00:00","error":null,"lastVerifiedAt":"2026-11-21T13:15:52.5508667+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-aa12646f31c14e05b6115135ee3d7c51","complete":true,"records":13931,"lastAttemptAt":"2026-11-21T13:15:53.3624696+00:00","lastSuccessAt":"2026-11-21T12:15:59.371+00:00","error":null,"lastVerifiedAt":"2026-11-21T12:15:59.371+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13967,"expectedIdentifiers":13967,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-99c78bee98bf8a60587f33f568944b12d3afe17ecc41437c57b47e2204cce04d","complete":true,"records":9989,"lastAttemptAt":"2026-11-21T13:15:52.2769313+00:00","lastSuccessAt":"2026-11-21T00:54:34.963487+00:00","error":null,"lastVerifiedAt":"2026-11-21T13:15:52.2769313+00:00","snapshotPublishedAt":"2026-11-21T00:03:07+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-21T13:15:52.0552174+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-21T13:15:52.0552174+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-2c09f95d48acb57436aa1dd2f0eec6f651dce8d1621b6978554be0f0b129faa4","complete":true,"records":3209,"lastAttemptAt":"2026-11-21T13:15:52.2904421+00:00","lastSuccessAt":"2026-11-20T23:48:55.8565941+00:00","error":null,"lastVerifiedAt":"2026-11-21T13:15:52.2904421+00:00","snapshotPublishedAt":"2026-11-20T23:48:16+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-14439d295cda6d6706536c3efcb7f193a982609cf031218db7fa9ef26fdcc725","complete":true,"records":232850,"lastAttemptAt":"2026-11-21T13:15:52.1671406+00:00","lastSuccessAt":"2026-11-21T03:47:49.8245357+00:00","error":null,"lastVerifiedAt":"2026-11-21T13:15:52.1671406+00:00","snapshotPublishedAt":"2026-11-21T03:33:18+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}