FacturaScripts path traversal and RCE in UploadedFile move

Severity: critical · CVSS 9.9 · Published 2026-07-14

FacturaScripts, an open-source ERP and CRM platform, is vulnerable to a security flaw in its file upload system. An authenticated user can bypass intended storage restrictions to write files anywhere on the server's disk. This allows an attacker to take full control of the server by uploading and executing malicious code, potentially leading to data theft or complete service disruption.

Technologies: NeoRazorX FacturaScripts, facturascripts/facturascripts (Packagist). Vendors: NeoRazorX, Packagist.

Quick answers

Is This vulnerability exploited in the wild?
No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.
How severe is This vulnerability?
Critical severity, with a CVSS score of 9.9, published 14 July 2026.
Which products and versions are affected?
NeoRazorX FacturaScripts >= 2025, <= 2026.2; facturascripts/facturascripts (Packagist) >= 2025, <= 2026.2.
Is there a fix for This vulnerability?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is This vulnerability attacked?
It is attacked over the network, in a network appliance.
Am I affected?
Check whether you run NeoRazorX FacturaScripts or facturascripts/facturascripts (Packagist) 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 path traversal vulnerability exists in the `FacturaScripts\Core\UploadedFile::move()` method. The application fails to sanitize the client-provided filename from `getClientOriginalName()` before concatenating it with the destination directory. An authenticated attacker can use `../` sequences to write files outside the intended `MyFiles/` directory. By targeting directories excluded from the default `index.php` rewrite rules (such as `Dinamic/Assets/`) and uploading a malicious `.htaccess` file to remap file extensions to the PHP handler, an attacker can achieve remote code execution (RCE). The vulnerability affects multiple API and UI upload endpoints.

Affected products

  • NeoRazorX FacturaScripts >= 2025, <= 2026.2

Timeline

  • 2026-07-14: advisory: GHSA-hgjx-r89m-m7v4 published

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.