CVE-2026-42879: CWE-94: Improper Control of Generation of Code ('Code Injection') in NeoRazorX facturascripts
FacturaScripts is an open source accounting and invoicing software. In 2025.81 and earlier, an authenticated unrestricted file upload vulnerability exists in FacturaScripts' product image upload functionality. An attacker with valid credentials can upload a PHP file disguised as a GIF image (using a GIF89a header), bypassing MIME type validation. The file is stored with its original extension, including executable extensions such as .php. The vulnerability exists the addImageAction() method of Core/Lib/ExtendedController/ProductImagesTrait.php.
AI Analysis
Technical Summary
CVE-2026-42879 is an authenticated unrestricted file upload vulnerability in NeoRazorX's FacturaScripts accounting software versions 2025.81 and earlier. The flaw exists in the product image upload feature, specifically in the addImageAction() method, where MIME type validation can be bypassed by uploading a PHP file with a GIF89a header. The file is stored with its original extension, including executable extensions like .php, enabling code injection (CWE-94) and improper file upload control (CWE-434). This allows an authenticated attacker to potentially execute arbitrary code on the server.
Potential Impact
An attacker with valid credentials can upload malicious PHP files disguised as images, potentially leading to remote code execution or unauthorized actions on the affected system. The vulnerability impacts confidentiality, integrity, and availability as indicated by the CVSS vector (C:L/I:L/A:L). There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official fix or patch is currently documented, users should restrict access to the upload functionality to trusted users only and monitor for suspicious uploads. Applying strict server-side validation on file types and extensions and disabling execution permissions on upload directories are recommended interim mitigations until an official fix is released.
CVE-2026-42879: CWE-94: Improper Control of Generation of Code ('Code Injection') in NeoRazorX facturascripts
Description
FacturaScripts is an open source accounting and invoicing software. In 2025.81 and earlier, an authenticated unrestricted file upload vulnerability exists in FacturaScripts' product image upload functionality. An attacker with valid credentials can upload a PHP file disguised as a GIF image (using a GIF89a header), bypassing MIME type validation. The file is stored with its original extension, including executable extensions such as .php. The vulnerability exists the addImageAction() method of Core/Lib/ExtendedController/ProductImagesTrait.php.
CVSS v3.1
Score 6.3medium
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-42879 is an authenticated unrestricted file upload vulnerability in NeoRazorX's FacturaScripts accounting software versions 2025.81 and earlier. The flaw exists in the product image upload feature, specifically in the addImageAction() method, where MIME type validation can be bypassed by uploading a PHP file with a GIF89a header. The file is stored with its original extension, including executable extensions like .php, enabling code injection (CWE-94) and improper file upload control (CWE-434). This allows an authenticated attacker to potentially execute arbitrary code on the server.
Potential Impact
An attacker with valid credentials can upload malicious PHP files disguised as images, potentially leading to remote code execution or unauthorized actions on the affected system. The vulnerability impacts confidentiality, integrity, and availability as indicated by the CVSS vector (C:L/I:L/A:L). There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official fix or patch is currently documented, users should restrict access to the upload functionality to trusted users only and monitor for suspicious uploads. Applying strict server-side validation on file types and extensions and disabling execution permissions on upload directories are recommended interim mitigations until an official fix is released.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-30T18:49:06.711Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a173900e29bf47b50dc2e2f
Added to database: 5/27/2026, 6:33:36 PM
Last enriched: 5/27/2026, 6:48:54 PM
Last updated: 5/27/2026, 8:03:23 PM
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.