{"id":"CVE-2024-47818","published":"2024-10-07T21:10:22Z","modified":"2024-10-08T14:18:42Z","title":"Logged-in users with any role can delete arbitrary files in @saltcorn/server","vendor":"saltcorn","product":"saltcorn","tier":"tail","description":{"text":"Saltcorn is an extensible, open source, no-code database application builder. A logged-in user with any role can delete arbitrary files on the filesystem by calling the `sync/clean_sync_dir` endpoint. The `dir_name` POST parameter is not validated/sanitized and is used to construct the `syncDir` that is deleted by calling `fs.rm`. This issue has been addressed in release version 1.0.0-beta16 and all users are advised to upgrade. There are no known workarounds for this vulnerability.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00783,"percentile":0.56925,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/saltcorn/saltcorn/security/advisories/GHSA-43f3-h63w-p6f6","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/saltcorn/saltcorn/commit/3c551261d0e230635774798009951fa83a07cc3a","tags":["x_refsource_MISC"]},{"url":"https://github.com/saltcorn/saltcorn/blob/v1.0.0-beta.15/packages/server/routes/sync.js#L337-L346","tags":["x_refsource_MISC"]}],"priority":{"score":15.9,"factors":[{"name":"EPSS percentile","points":11.39},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"saltcorn","affectedVersions":[{"vendor":"saltcorn","product":"saltcorn","versions":["< 1.0.0-beta.16"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-10-08T14:13:36.451606Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@saltcorn/server","vulnerableRanges":["<1.0.0-beta.16"],"patched":["1.0.0-beta.16"],"from":["GHSA-43f3-h63w-p6f6"],"provenance":"source"}],"summary":{"text":"Saltcorn, the open source no-code database application builder, contains a path traversal flaw in its sync/clean_sync_dir endpoint, where the unvalidated dir_name POST parameter is used to build the directory passed to fs.rm. An attacker who is logged in with any role, over the network and without user interaction, can delete arbitrary files on the server's filesystem.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:06Z"},"euvd":{"id":"EUVD-2024-2925","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-47818","published":"2024-10-07","fixed":"1.0.0-beta.16","kev":false},{"cve":"CVE-2026-40163","published":"2026-04-10","fixed":"1.6.0-beta.4","kev":false,"link":{"from":"CVE-2024-47818","to":"CVE-2026-40163","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@saltcorn/server","fromFixed":"1.0.0-beta.16","toFixed":"1.4.5","daysApart":550}]}},{"cve":"CVE-2026-41478","published":"2026-04-24","fixed":"1.6.0-beta.5","kev":false},{"cve":"CVE-2026-42259","published":"2026-05-07","fixed":"1.6.0-beta.5","kev":false}],"package":"npm:@saltcorn/server"}}