CVE-2023-26045 NodeBB vulnerable to path traversal and code execution via prototype vulnerability

Critical 10.0 Published Updated

Attackers can execute arbitrary JavaScript files on the server via a path traversal flaw in the user export feature of NodeBB.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-26045?

CVE-2023-26045 is a critical path traversal vulnerability in NodeBB, published on 24 Jul 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

NodeBB is Node.js based forum software. Starting in version 2.5.0 and prior to version 2.8.7, due to the use of the object destructuring assignment syntax in the user export code path, combined with a path traversal vulnerability, a specially crafted payload could invoke the user export logic to arbitrarily execute javascript files on the local disk. This issue is patched in version 2.8.7. As a workaround, site maintainers can cherry pick the fix into their codebase to patch the exploit.

Weakness: CWE-22

Which versions are affected by CVE-2023-26045?

2 open source packages ship an affected version, including nodebb. It affects 1 product.

PackageAffectedFixed in
nodebb npmFrom 2.5.02.8.7
nodebb npmFrom 2.5.02.8.7

Products include Nodebb Nodebb.

How do I fix CVE-2023-26045?

Upgrade nodebb to 2.8.7 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2023-26045 being exploited?

There is no known exploitation of CVE-2023-26045 in the wild and no public exploit code.

Sources

Also known as GHSA-vh2g-6c4x-5hmp.

Is CVE-2023-26045 in your software?

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

Check your SBOMs for free