CVE-2024-21518 Zip slip in opencart

High 7.2 Published Updated

Attackers can exploit a Zip Slip vulnerability in the marketplace installer to write arbitrary files to the web root, potentially leading to code execution.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-21518?

CVE-2024-21518 is a high-severity path traversal vulnerability in opencart/opencart, published on 22 Jun 2024. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

This affects versions of the package opencart/opencart from 4.0.0.0. A Zip Slip issue was identified via the marketplace installer due to improper sanitization of the target path, allowing files within a malicious archive to traverse the filesystem and be extracted to arbitrary locations. An attacker can create arbitrary files in the web root of the application and overwrite other existing files by exploiting this vulnerability.

Weakness: CWE-290, CWE-22, CWE-29

Which versions are affected by CVE-2024-21518?

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

PackageAffectedFixed in
opencart/opencart PackagistFrom 4.0.0.0None
opencart/opencart PackagistFrom 4.0.0.0None
opencart BitnamiFrom 4.0.0-0None

Products include Opencart Opencart.

How do I fix CVE-2024-21518?

No fix has been published for CVE-2024-21518 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-2024-21518 being exploited?

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

Sources

Also known as BIT-opencart-2024-21518, GHSA-m7r8-2r98-vppj.

Is CVE-2024-21518 in your software?

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

Check your SBOMs for free