# CVE-2024-47818: Logged-in users with any role can delete arbitrary files in @saltcorn/server

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.05%, higher than 64% of CVEs (2026-11-30)
- Published: 2024-10-07T15:10:52.000Z
- Modified: 2026-06-17T07:57:48.577Z
- Also known as: GHSA-43f3-h63w-p6f6
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- saltcorn saltcorn: < 1.0.0-beta.16
- saltcorn_collective_ltd saltcorn: before 1.0.0-beta.16
- @saltcorn/server (npm): before 1.0.0-beta.16

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 6.5 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`

## References

- <https://github.com/saltcorn/saltcorn/security/advisories/GHSA-43f3-h63w-p6f6> (web)
- <https://github.com/saltcorn/saltcorn/commit/3c551261d0e230635774798009951fa83a07cc3a> (web)
- <https://github.com/saltcorn/saltcorn/blob/v1.0.0-beta.15/packages/server/routes/sync.js#L337-L346> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-47818> (advisory)
- <https://github.com/saltcorn/saltcorn> (package)

## Sources

- CVE List: [CVE-2024-47818](https://www.cve.org/CVERecord?id=CVE-2024-47818), CVE Terms of Use, modified 2024-10-08
- GitHub Advisory Database: [GHSA-43f3-h63w-p6f6](https://github.com/advisories/GHSA-43f3-h63w-p6f6), CC-BY-4.0, modified 2024-10-08
- NVD: [CVE-2024-47818](https://nvd.nist.gov/vuln/detail/CVE-2024-47818), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-47818 · Whole record: https://cve.day/CVE-2024-47818.json · Rebuilt by cve.day 2026-11-25T22:58:46.153Z
