CVE-2022-25895 Directory Traversal
Attackers can read arbitrary files via directory traversal in lite-dev-server due to missing input sanitization on request URLs.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2022-25895?
CVE-2022-25895 is a high-severity path traversal vulnerability in lite-dev-server, published on 21 Dec 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
All versions of package lite-dev-server are vulnerable to Directory Traversal due to missing input sanitization and sandboxes being employed to the req.url user input that is passed to the server code.
Weakness: CWE-22
Which versions are affected by CVE-2022-25895?
2 open source packages ship an affected version, including lite-dev-server. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
lite-dev-server npm | All versions to 3.2.7 | None |
lite-dev-server npm | All versions to 3.2.7 | None |
Products include Lite-Dev-Server Project Lite-Dev-Server.
How do I fix CVE-2022-25895?
No fix has been published for CVE-2022-25895 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2022-25895 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-25895 exists.
Sources
Also known as GHSA-pppv-ch8p-rp2w.