6.6medium
Arbitrary File Creation in opencart
- Severity
- 6.6medium CVSS:3.1 by snyk
- Exploit likelihood
- 0.72% (higher than 55% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-7q3h-j95q-3vjhBIT-OPENCART-2024-21519
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| opencart/opencart | from 4.0.0.0 before * | CVE List |
| opencart opencart | from 4.0.0.0 before *, from 4.0.0.0 | CVE List, NVD |
| opencart/opencart (Packagist) | from 4.0.0.0 | GitHub Advisory Database |
| opencart (Bitnami) | from 4.0.0-0 | Bitnami Vulnerability Database |
All scores
| snyk | 6.6medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H/E:P |
| GitHub | 6.6high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H |
| GitHub | high 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 | 7.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| Bitnami Vulnerability Database | high rating |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
Esto afecta a las versiones del paquete opencart/opencart desde 4.0.0.0. Se identificó un problema de creación arbitraria de archivos mediante la funcionalidad de restauración de la base de datos. Al inyectar código PHP en la base de datos, un atacante con privilegios de administrador puede crear un archivo de copia de seguridad con un nombre de archivo arbitrario (incluida la extensión), dentro de /system/storage/backup. **Nota:** Es menos probable que el archivo creado esté disponible en la raíz web, ya que parte de las recomendaciones de seguridad para la aplicación sugieren mover la ruta de almacenamiento fuera de la raíz web.
Bitnami Vulnerability Database
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.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-21519 changed 2024-08-01 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-7q3h-j95q-3vjh changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2024-21519 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-OPENCART-2024-21519 changed 2025-04-03 | Apache-2.0 |