Arbitrary 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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | opencart/opencart | >= 4.0.0.0 | no fix |
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-21519
- https://github.com/opencart/opencart
- https://github.com/opencart/opencart/blob/4.0.2.3/upload/admin/controller/tool/upload.php%23L353
- https://github.com/opencart/opencart/blob/master/upload/admin/controller/tool/upload.php%23L353
- https://security.snyk.io/vuln/SNYK-PHP-OPENCARTOPENCART-7266579
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H- Weakness (CWE)
CWE-20- Platform
- Composer
- Package
opencart/opencart- Disclosed
- 22.06.2024
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-7q3h-j95q-3vjh - CC BY 4.0
Vulnerability history: opencart/opencart
All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 17
- First → latest
- 05.2021 07.2024
- Without a fix
- 16
- Exploited in attacks
- 0
Severity breakdown
- High 6
- Medium 10
- Low 1
Disclosures per year
- 2021: 1
- 2022: 8
- 2023: 1
- 2024: 7
- 2025: 0
- 2026: 0
-
Arbitrary File Creation in opencart this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.