CVE-2022-25848 Directory Traversal
An attacker can read arbitrary files from the server by exploiting path traversal in the static-dev-server package.
- 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-25848?
CVE-2022-25848 is a high-severity path traversal vulnerability in static-dev-server, published on 29 Nov 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
This affects all versions of package static-dev-server. This is because when paths from users to the root directory are joined, the assets for the path accessed are relative to that of the root directory.
Weakness: CWE-22
Which versions are affected by CVE-2022-25848?
2 open source packages ship an affected version, including static-dev-server. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
static-dev-server npm | All versions | None |
static-dev-server npm | All versions | None |
Products include Static-Dev-Server Project Static-Dev-Server.
How do I fix CVE-2022-25848?
No fix has been published for CVE-2022-25848 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-25848 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-25848 exists.
Sources
Also known as GHSA-7fxm-c848-89q8.