CVE-2024-47818 json
Logged-in users with any role can delete arbitrary files in @saltcorn/server
published 2024-10-07 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-2925 , GHSA-43f3-h63w-p6f6
- cvss
- 6.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 56%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm @saltcorn/server 1.0.0-beta.16
- saltcorn_collective_ltd saltcorn 1.0.0-beta.16
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.78% chance of exploitation in the next 30 days, higher than 56% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | @saltcorn/server | <1.0.0-beta.16 |
1.0.0-beta.16 |
Affected products
- saltcorn saltcorn
- saltcorn_collective_ltd saltcorn
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/saltcorn/saltcorn/commit/3c551261d0e230635774798009951fa83a07cc3a
web
-
github.com
/saltcorn/saltcorn/security/advisories/GHSA-43f3-h63w-p6f6
web
-
github.com
/saltcorn/saltcorn/blob/v1.0.0-beta.15/packages/server/routes/sync.js#L337-L346
web
-
nvd.nist.gov
/vuln/detail/CVE-2024-47818
advisory
-
github.com
/saltcorn/saltcorn
package
Sources
- CVE List CVE-2024-47818
- GitHub Advisory GHSA-43f3-h63w-p6f6
- NVD CVE-2024-47818
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.