CVE-2022-25936 Servst vulnerable to Path Traversal
An attacker can read arbitrary files from the server due to improper sanitization of file paths in the servst library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-25936?
CVE-2022-25936 is a high-severity path traversal vulnerability in servst, published on 30 Jan 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Versions of the package servst before 2.0.3 are vulnerable to Directory Traversal due to improper sanitization of the filePath variable.
Weakness: CWE-22
Which versions are affected by CVE-2022-25936?
2 open source packages ship an affected version, including servst. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
servst npm | All versions | 2.0.3 |
servst npm | All versions | 2.0.3 |
Products include Servst Project Servst.
How do I fix CVE-2022-25936?
Upgrade servst to 2.0.3 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2022-25936 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-25936 exists.
Sources
Also known as GHSA-88v8-v46g-6c9w.