# CVE-2026-42879: FacturaScripts unrestricted file upload in product image upload

Source: https://junglewise.ai/threats/cve-2026-42879-facturascripts-unrestricted-file-upload-in-product-image-upload  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-05-27. Updated: 2026-06-09  
License: CC BY 4.0 with a link back

CVE-2026-42879 · Severity: medium · CVSS 6.3 · Published 2026-05-27

FacturaScripts, an open-source ERP and accounting system, contains a vulnerability in its product image upload feature. An authenticated user can bypass security checks to upload malicious PHP scripts disguised as images. If successful, an attacker can remotely execute commands on the server, potentially leading to a full system takeover, data theft, or service disruption.

Technologies: [NeoRazorX FacturaScripts](https://junglewise.ai/threats/technologies/facturascripts), [facturascripts/facturascripts (Packagist)](https://junglewise.ai/threats/technologies/facturascripts-facturascripts). Vendors: [NeoRazorX](https://junglewise.ai/threats/vendors/neorazorx), [Packagist](https://junglewise.ai/threats/vendors/packagist).

## Quick answers

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

**How severe is CVE-2026-42879?** Medium severity, with a CVSS score of 6.3, published 27 May 2026.

**Which products and versions are affected?** NeoRazorX FacturaScripts <= 2025.81; facturascripts/facturascripts (Packagist) <= 2025.81, ECOSYSTEM:introduced=0,last_affected=2025.81.

**Is there a fix for CVE-2026-42879?** 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 CVE-2026-42879 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2026-42879?** 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

An authenticated unrestricted file upload vulnerability exists in the `addImageAction()` method of `Core/Lib/ExtendedController/ProductImagesTrait.php`. The application validates file uploads by checking if the MIME type contains the string 'image/', which can be spoofed by prepending GIF89a magic bytes to a PHP payload. Because the system preserves the original file extension and stores the file in a web-accessible directory (`/MyFiles/YYYY/MM/`), an attacker can upload a `.php` file and execute it via a direct URL request. This results in Remote Code Execution (RCE) with the privileges of the web server user.

## Affected products

- NeoRazorX FacturaScripts <= 2025.81

## Identifiers

- CVE-2026-42879
- GHSA-vf3q-frmr-vrr9

## Timeline

- 2026-05-07: advisory: GitHub Advisory published
- 2026-05-27: disclosed: NVD publication date

## References

- [https://api.github.com/users/guzrex](https://api.github.com/users/guzrex)
- [https://github.com/guzrex](https://github.com/guzrex)
- [https://api.github.com/users/guzrex/gists%7B/gist_id%7D](https://api.github.com/users/guzrex/gists%7B/gist_id%7D)
- [https://api.github.com/users/guzrex/repos](https://api.github.com/users/guzrex/repos)
- [https://avatars.githubusercontent.com/u/136125866?v=4](https://avatars.githubusercontent.com/u/136125866?v=4)
- [https://api.github.com/users/guzrex/events%7B/privacy%7D](https://api.github.com/users/guzrex/events%7B/privacy%7D)

## Related threats

- [FacturaScripts PHP object injection in WidgetSelect](https://junglewise.ai/threats/cve-2026-104905-facturascripts-before-version-2026-7-contains-a-php-object)
- [FacturaScripts path traversal and RCE in UploadedFile move](https://junglewise.ai/threats/facturascripts-path-traversal-and-rce-in-uploadedfile-move-40e5093b)
- [FacturaScripts stored XSS in WidgetVariante and WidgetSubcuenta](https://junglewise.ai/threats/cve-2026-45710-facturascripts-stored-xss-in-widgetvariante-and-widgetsubcuenta)
- [FacturaScripts CSV formula injection in CSVExport](https://junglewise.ai/threats/cve-2026-45263-facturascripts-csv-formula-injection-in-csvexport)
- [FacturaScripts path traversal in static file controllers](https://junglewise.ai/threats/cve-2026-45693-facturascripts-path-traversal-in-static-file-controllers)
