CVE-2024-21519 Arbitrary File Creation in opencart

Medium 6.6 Published Updated

Admins can inject PHP code via database restoration to create arbitrary files, potentially leading to remote code execution.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-21519?

CVE-2024-21519 is a medium-severity vulnerability in opencart/opencart, published on 22 Jun 2024. An attacker needs administrator access to exploit it, with no action from the victim.

Official 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.

Weakness: CWE-20

Which versions are affected by CVE-2024-21519?

3 open source packages ship an affected version, including opencart/opencart and opencart. It affects 1 product.

PackageAffectedFixed in
opencart/opencart PackagistFrom 4.0.0.0None
opencart/opencart PackagistFrom 4.0.0.0None
opencart BitnamiFrom 4.0.0-0None

Products include Opencart Opencart.

How do I fix CVE-2024-21519?

No fix has been published for CVE-2024-21519 yet. Limit exposure of the affected software until one is available.

Is CVE-2024-21519 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-21519 exists.

Sources

Also known as BIT-opencart-2024-21519, GHSA-7q3h-j95q-3vjh.

Is CVE-2024-21519 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free