CVE-2024-21519
published medium CVSS 3.1 · 6.6opencart/opencart vulnerability
Package status and fixes
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.6 / 10
- Severity
- medium
- Provider
- snyk · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H/E:P
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | opencart/opencart | 4.0.0.0 and later (affected · semver) | snyk · cna |
| opencart | opencart | 4.0.0.0 and later (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-20 Arbitrary File Creation
References
2Provider assertions
3snyk · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 14180f7068cbddd280932a9856e96e85aaa0d2cc9d8295474660943b9600dfc5
- Ingested
- 23 Sep 2026, 08:19:02 UTC
- Source record
- Official CVE record