Skip to content

CVE-2024-21519 Arbitrary File Creation in opencart

HighCVSS 7.2 EPSS 0.72%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total
Technology
PHP

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.

Upgrade path

2 packages: 0 fixed, 2 with no fix yet.

PackageAffectedFixed inStatus
opencart/opencart >= 4.0.0.0 No fix listed No fix yet
opencart/opencart(Packagist) = 4.1.0.0; = 4.1.0.1; = 4.1.0.2; = 4.1.0.3 +2 more No fix listed No fix yet

Affected products

ProductAffected versionsFixed in
opencart/opencart(Packagist) >= 4.0.0.0 No fix listed
opencart/opencart(Packagist) = 4.1.0.0 No fix listed
opencart/opencart(Packagist) = 4.1.0.1 No fix listed
opencart/opencart(Packagist) = 4.1.0.2 No fix listed
opencart/opencart(Packagist) = 4.1.0.3 No fix listed
opencart/opencart(Packagist) = 4.1.0.4 No fix listed
opencart/opencart >= 4.0.0.0 No fix listed

References