CVE-2024-21518 Zip slip in opencart
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.
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.
| Package | Affected | Fixed in |
|---|---|---|
opencart/opencart Packagist | From 4.0.0.0 | None |
opencart/opencart Packagist | From 4.0.0.0 | None |
opencart Bitnami | From 4.0.0-0 | None |
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.
Other vulnerabilities in opencart/opencart
Sources
Also known as BIT-opencart-2024-21518, GHSA-m7r8-2r98-vppj.