CVE-2024-21519
JSON

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 packageVersionsReported by
opencart/opencartfrom 4.0.0.0 before *CVE List
opencart opencartfrom 4.0.0.0 before *, from 4.0.0.0CVE List, NVD
opencart/opencart (Packagist)from 4.0.0.0GitHub Advisory Database
opencart (Bitnami)from 4.0.0-0Bitnami Vulnerability Database

All scores

snyk6.6medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H/E:P
GitHub6.6high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
NVD7.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Bitnami Vulnerability Databasehigh rating

Classification

CWE-20

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

SourceRecordLicence
CVE ListCVE-2024-21519 changed 2024-08-01CVE Terms of Use
GitHub Advisory DatabaseGHSA-7q3h-j95q-3vjh changed 2026-09-10CC-BY-4.0
NVDCVE-2024-21519 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-OPENCART-2024-21519 changed 2025-04-03Apache-2.0