Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @saltcorn/server
  4. ›
  5. CVE-2024-47818

CVE-2024-47818: Saltcorn Server allows logged-in users to delete arbitrary files because of a path traversal vulnerability

October 7, 2024 (updated October 8, 2024)

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.

References

  • github.com/advisories/GHSA-43f3-h63w-p6f6
  • github.com/saltcorn/saltcorn
  • github.com/saltcorn/saltcorn/blob/v1.0.0-beta.15/packages/server/routes/sync.js
  • github.com/saltcorn/saltcorn/commit/3c551261d0e230635774798009951fa83a07cc3a
  • github.com/saltcorn/saltcorn/security/advisories/GHSA-43f3-h63w-p6f6
  • nvd.nist.gov/vuln/detail/CVE-2024-47818

Code Behaviors & Features

Detect and mitigate CVE-2024-47818 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.0.0-beta.16

Fixed versions

  • 1.0.0-beta.16

Solution

Upgrade to version 1.0.0-beta.16 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

npm/@saltcorn/server/CVE-2024-47818.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:45 +0000.