CVE-2024-21519Opencart
High 7.2
Follow: this CVE · Opencart · Opencart We alert you by email or Slack (account required).
- Priority
- 43
- CVSS 3.1
- 7.2
- EPSS
- 1.0% probability of exploitation in 30 days · percentile 61
- Auth required
- Yes
- Published
- Jun 22, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-20
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Opencart.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | opencart/opencart |
≥ 4.0.0.0 |
no fixed version | — |
Per OSV / GitHub Advisories (GHSA-7q3h-j95q-3vjh). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| opencart | opencart | ≥ 4.0.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com
- security.snyk.io Exploit Third Party Advisory