CVE-2022-25848 Directory Traversal

High 7.5 Published Updated

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.

PackageAffectedFixed in
static-dev-server npmAll versionsNone
static-dev-server npmAll versionsNone

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.

Is CVE-2022-25848 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free