# CVE-2026-45708: CubeCart PHP code injection in Invoice Editor

Source: https://junglewise.ai/threats/cve-2026-45708-cubecart-php-code-injection-in-invoice-editor  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-05-13. Updated: 2026-05-14  
License: CC BY 4.0 with a link back

CVE-2026-45708 · Severity: high · CVSS 7.2 · Published 2026-05-13

CubeCart is an e-commerce platform used to manage online stores. A security flaw allows an administrative user with permission to edit documents to inject malicious code into the invoice template. When any administrator later prints an order, the system generates a temporary file containing this code that is accessible to anyone on the internet, potentially allowing an attacker to take full control of the web server and access sensitive customer data.

Technologies: [CubeCart](https://junglewise.ai/threats/technologies/cubecart). Vendors: [CubeCart](https://junglewise.ai/threats/vendors/cubecart).

## Quick answers

**Is CVE-2026-45708 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-45708 being exploited in the wild.

**How severe is CVE-2026-45708?** High severity, with a CVSS score of 7.2, published 13 May 2026.

**Which products and versions are affected?** CubeCart < 6.7.3.

**Is there a fix for CVE-2026-45708?** A patch was published on 2026-05-13: Fixed in version 6.7.3 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-45708 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2026-45708?** Check whether you run CubeCart at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A code injection vulnerability exists in CubeCart's Invoice Editor (admin/sources/documents.invoice.inc.php) where the application reads from $GLOBALS['RAW']['POST']['content'], bypassing global HTML sanitization. While Smarty security policies are in place, they do not filter raw PHP tags (<?php ... ?>). When an administrator prints an order, the rendered template—including the raw PHP—is written to a file named 'print.<md5>.php' in the /files/ directory. Due to an explicit 'allow from all' directive in the files/.htaccess for print.*.php files, these files become publicly accessible. An attacker can then execute arbitrary code with the privileges of the web server user. This is fixed in version 6.7.3 by stripping PHP tags before writing the print artifact.

## Affected products

- CubeCart CubeCart < 6.7.3

## Timeline

- 2026-05-12: advisory: GitHub Security Advisory published
- 2026-05-13: disclosed: NVD publication date
- 2026-05-13: patched: Fixed in version 6.7.3

## References

- [https://github.com/cubecart/v6/security/advisories/GHSA-747j-4mmc-cj63](https://github.com/cubecart/v6/security/advisories/GHSA-747j-4mmc-cj63)

## Related threats

- [CubeCart broken access control in GDPR customer purge](https://junglewise.ai/threats/cve-2026-54648-cubecart-broken-access-control-in-gdpr-customer-purge)
- [CubeCart SQL injection in download_expire settings parameter](https://junglewise.ai/threats/cve-2026-54647-cubecart-sql-injection-in-download-expire-settings-parameter)
- [CubeCart SQL identifier injection in maintenance tools](https://junglewise.ai/threats/cve-2026-54646-cubecart-sql-identifier-injection-in-maintenance-tools)
- [CubeCart stored XSS in product description fields](https://junglewise.ai/threats/cve-2026-54645-cubecart-stored-xss-in-product-description-fields)
- [CubeCart XSS in GUI messages via unsafe anchor attributes](https://junglewise.ai/threats/cve-2026-54644-cubecart-xss-in-gui-messages-via-unsafe-anchor-attributes)
