# CVE-2024-21518: Zip slip in opencart

- Severity: High 7.2 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 14.1%, higher than 96% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-06-22T05:00:03.429Z
- Modified: 2026-09-10T03:50:15.593Z
- Also known as: GHSA-m7r8-2r98-vppj, BIT-OPENCART-2024-21518
- Weaknesses: CWE-22, CWE-29, CWE-290
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- opencart/opencart: from 4.0.0.0 before *
- opencart opencart: from 4.0.0.0 before *; from 4.0.0.0
- opencart/opencart (Packagist): from 4.0.0.0
- opencart (Bitnami): from 4.0.0-0

## Every score

- snyk: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H/E:P`
- GitHub: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `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: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://security.snyk.io/vuln/SNYK-PHP-OPENCARTOPENCART-7266578> (exploit, third-party-advisory, web)
- <https://github.com/opencart/opencart/blob/04c1724370ab02967d3b4f668c1b67771ecf1ff4/upload/admin/controller/marketplace/installer.php%23L383C1-L383C1> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-21518> (advisory, web)
- <https://github.com/opencart/opencart> (package)

## Sources

- CVE List: [CVE-2024-21518](https://www.cve.org/CVERecord?id=CVE-2024-21518), CVE Terms of Use, modified 2024-08-01
- GitHub Advisory Database: [GHSA-m7r8-2r98-vppj](https://github.com/advisories/GHSA-m7r8-2r98-vppj), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-21518](https://nvd.nist.gov/vuln/detail/CVE-2024-21518), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-OPENCART-2024-21518](https://osv.dev/vulnerability/BIT-OPENCART-2024-21518), Apache-2.0, modified 2025-04-03

---

Page: https://cve.day/CVE-2024-21518 · Whole record: https://cve.day/CVE-2024-21518.json · Rebuilt by cve.day 2026-11-25T22:58:42.141Z
