# CVE-2024-21519: Arbitrary File Creation in opencart

- Severity: Medium 6.6 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:H/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): 0.72%, higher than 55% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-06-22T05:00:04.894Z
- Modified: 2026-09-10T03:50:15.044Z
- Also known as: GHSA-7q3h-j95q-3vjh, BIT-OPENCART-2024-21519
- Weaknesses: CWE-20
- 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. An Arbitrary File Creation issue was identified via the database restoration functionality. By injecting PHP code into the database, an attacker with admin privileges can create a backup file with an arbitrary filename (including the extension), within /system/storage/backup.

**Note:**

It is less likely for the created file to be available within the web root, as part of the security recommendations for the application suggest moving the storage path outside of the web root.

(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 6.6 Medium `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H/E:P`
- GitHub: CVSS:3.1 6.6 High `CVSS:3.1/AV:N/AC:H/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:P/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-7266579> (exploit, third-party-advisory, web)
- <https://github.com/opencart/opencart/blob/4.0.2.3/upload/admin/controller/tool/upload.php%23L353> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-21519> (advisory, web)
- <https://github.com/opencart/opencart> (package)
- <https://github.com/opencart/opencart/blob/master/upload/admin/controller/tool/upload.php%23L353> (web)

## Sources

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

---

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