PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-42879 NeoRazorX CVE debrief

## Summary FacturaScripts versions 2025.81 and earlier contain an authenticated unrestricted file upload vulnerability in the product image upload functionality. An attacker with valid credentials can upload a PHP file disguised as a GIF image by using a GIF89a header to bypass MIME type validation. The file is stored with its original executable extension (.php), enabling potential remote code execution. The vulnerability resides in the `addImageAction()` method of `Core/Lib/ExtendedController/ProductImagesTrait.php`. ## Technical Details - **Affected Component**: Product image upload functionality (`ProductImagesTrait.php`) - **Attack Vector**: Network - **Attack Complexity**: Low - **Privileges Required**: Low (authenticated user) - **User Interaction**: None - **Scope**: Unchanged - **Impact**: Confidentiality (Low), Integrity (Low), Availability (Low) - **Weaknesses**: CWE-94 (Improper Control of Generation of Code), CWE-434 (Unrestricted Upload of File with Dangerous Type) The vulnerability allows authenticated attackers to bypass MIME type validation by prepending a GIF89a magic bytes header to a PHP file. While the validation checks for image MIME types, it fails to properly validate the file content or restrict dangerous extensions, allowing the file to be stored with its original .php extension and potentially executed by the web server. ## Affected Versions - FacturaScripts 2025.81 and earlier ## Recommended Actions 1. **Immediate**: Upgrade to a patched version of FacturaScripts when available 2. **Short-term**: Implement strict file extension validation and content inspection for uploaded files 3. **Short-term**: Configure web server to deny execution of PHP files in upload directories 4. **Long-term**: Apply principle of least privilege to file upload functionality 5. **Long-term**: Implement comprehensive file upload security controls including content-type validation, extension whitelisting, and server-side file analysis

Vendor
NeoRazorX
Product
facturascripts
CVSS
MEDIUM 6.3
CISA KEV
Not listed in stored evidence
Original CVE published
2026-05-27
Original CVE updated
2026-05-27
Advisory published
2026-05-27
Advisory updated
2026-05-27

Who should care

Organizations using FacturaScripts for accounting and invoicing operations

Technical summary

Authenticated file upload vulnerability in FacturaScripts product image functionality allows PHP execution via GIF89a header MIME bypass

Defensive priority

high

Recommended defensive actions

  • Upgrade to patched FacturaScripts version when available
  • Implement strict file extension validation for uploads
  • Configure web server to deny PHP execution in upload directories
  • Apply least privilege to file upload functionality
  • Implement comprehensive upload security controls

Evidence notes

Vulnerability details sourced from NVD and GitHub Security Advisory. CVSS 3.1 vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L. Weaknesses identified as CWE-94 and CWE-434.

Official resources

2026-05-27