CVE-2024-57189 Erxes Path Traversal vulnerability
An authenticated attacker can write arbitrary files via path traversal in the importHistoriesCreate mutation, potentially leading to code execution.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-57189?
CVE-2024-57189 is a medium-severity path traversal vulnerability in n/a, published on 10 Jun 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
In Erxes <1.6.2, an authenticated attacker can write to arbitrary files on the system using a Path Traversal vulnerability in the importHistoriesCreate GraphQL mutation handler.
Weakness: CWE-22
Which versions are affected by CVE-2024-57189?
2 open source packages ship an affected version, including erxes. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
erxes npm | All versions | 1.6.2 |
erxes npm | All versions | 1.6.2 |
Products include Erxes Erxes.
How do I fix CVE-2024-57189?
Upgrade erxes to 1.6.2 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2024-57189 being exploited?
There is no known exploitation of CVE-2024-57189 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-2977-5php-6789.