CVE-2024-21519
HIGH 7.2CVSS 3.1Arbitrary File Creation in opencart
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.
- Published
- 22 Jun 2024
- Last modified
- 10 Sep 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-20
- Also known as
- BIT-opencart-2024-21519GHSA-7q3h-j95q-3vjh
- Sources
- NVDJSONOSV GHSA-7q3h-j95q-3vjhJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | 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 |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 6.6 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.6 | CVSS:3.1/AV:N/AC:H/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/4.0.2.3/upload/admin/controller/tool/upload.php%23L353 · WEB
- https://security.snyk.io/vuln/SNYK-PHP-OPENCARTOPENCART-7266579 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-21519 · ADVISORY
- https://github.com/opencart/opencart · PACKAGE
- https://github.com/opencart/opencart/blob/master/upload/admin/controller/tool/upload.php%23L353 · WEB
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)