What’s Vulnerable › Vulnerabilities
CVE-2024-47818: Logged-in users with any role can delete arbitrary files in @saltcorn/server
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.8% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-10-07 · updated 2026-06-17
- Weakness: CWE-22
Description
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.
Affected products
- Saltcorn Collective Ltd Saltcorn: before 1.0.0-beta.16 — fixed in 1.0.0-beta.16
How to fix
Upgrade to a fixed version: Saltcorn Collective Ltd Saltcorn 1.0.0-beta.16. Check the vendor advisory for mitigations.
References
- https://github.com/saltcorn/saltcorn/blob/v1.0.0-beta.15/packages/server/routes/sync.js#L337-L346
- https://github.com/saltcorn/saltcorn/commit/3c551261d0e230635774798009951fa83a07cc3a
- https://github.com/saltcorn/saltcorn/security/advisories/GHSA-43f3-h63w-p6f6
Get alerted when CVE-2024-47818 or the next vulnerability affects your stack