Countly countly-server
countly-server: Path Traversal in delete_import Endpoint Allows Arbitrary File and Directory Deletion
countly-server is the server-side part of Countly, a product analytics solution. Prior to 24.05.50 and 25.03.44, the authenticated data-migration deletion route in plugins/data_migration/api/api.js passes the user-controlled exportid to clean_up_data without path validation. plugins/data_migration/api/data_migration_helper.js concatenates that identifier into a path resolved outside the intended import directory and calls remove recursively, allowing an application administrator or user with migration permission to delete writable files or directory trees and cause data loss or service disruption. This issue is fixed in versions 24.05.50 and 25.03.44.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 24.05.50
- >= 25.03, < 25.03.44
Fixed in 24.05.50, 25.03.44
Mitigation
Upgrade countly-server to 24.05.50 or 25.03.44 or later.
References
- Vendor advisory github.com/Countly/countly-server/security/adv…
- Patch github.com/Countly/countly-server/commit/764e2…
- Patch github.com/Countly/countly-server/commit/b652e…
3 more
- Release notes github.com/Countly/countly-server/blob/master/…
- Release notes github.com/Countly/countly-server/releases/tag…
- Release notes github.com/Countly/countly-server/releases/tag…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.