CVE-2024-21518
HIGH 7.2CVSS 3.1Zip slip in opencart
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.
- Published
- 22 Jun 2024
- Last modified
- 10 Sep 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-22CWE-29
- Also known as
- BIT-opencart-2024-21518GHSA-m7r8-2r98-vppj
- Sources
- NVDJSONOSV GHSA-m7r8-2r98-vppjJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | opencart | opencartcpe:2.3:a:opencart:opencart:*:*:*:*:*:*:*:* |
>= 4.0.0.0 | |
| OSV | Packagist | opencart/opencart | >= 4.0.0.0 |
References
- https://github.com/opencart/opencart/blob/04c1724370ab02967d3b4f668c1b67771ecf1ff4/upload/admin/controller/marketplace/installer.php%23L383C1-L383C1 · Patch, WEB
- https://security.snyk.io/vuln/SNYK-PHP-OPENCARTOPENCART-7266578 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-21518 · ADVISORY
- https://github.com/opencart/opencart · PACKAGE
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 22 Jun 2024)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 22 Jun 2024)