CVE-2023-2315 Path Traversal in OpenCart versions 4.0.0.0 to 4.0.2.2

High 8.1 Published Updated

Authenticated users with log access can delete arbitrary files on the server via path traversal in OpenCart.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-2315?

CVE-2023-2315 is a high-severity path traversal vulnerability in Opencart, published on 26 Sep 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Path Traversal in OpenCart versions 4.0.0.0 to 4.0.2.2 allows an authenticated user with access/modify privilege on the Log component to empty out arbitrary files on the server

Weakness: CWE-22, CWE-20

Which versions are affected by CVE-2023-2315?

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

PackageAffectedFixed in
opencart/opencart PackagistFrom 4.0.0.04.0.2.3
opencart/opencart PackagistFrom 4.0.0.04.0.2.3

Products include Opencart Opencart.

How do I fix CVE-2023-2315?

Upgrade opencart/opencart to 4.0.2.3 or later.

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

Is CVE-2023-2315 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-2315 exists.

Sources

Also known as GHSA-v4j2-cwmm-xg89.

Is CVE-2023-2315 in your software?

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

Check your SBOMs for free