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 a code injection vulnerability in NeoRazorX's FacturaScripts accounting software (version 2025.81 and earlier). It arises from an authenticated unrestricted file upload flaw in the product image upload functionality. The vulnerability allows an attacker with valid credentials to upload a PHP file disguised as a GIF image by manipulating the file header to GIF89a, bypassing MIME type checks. The file is stored with its original extension, including executable extensions like .php, enabling execution of arbitrary code on the server. The issue is located in the addImageAction() method within Core/Lib/ExtendedController/ProductImagesTrait.php. No official patch or remediation level has been provided yet.
Potential Impact
An attacker who is authenticated can upload malicious PHP files disguised as images, potentially leading to arbitrary code execution on the server. This could compromise the confidentiality, integrity, and availability of the affected system. The CVSS vector indicates network attack vector, low attack complexity, required privileges, no user interaction, and impacts on confidentiality, integrity, and availability, all at low levels.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict authenticated user permissions to prevent unauthorized file uploads and consider implementing additional server-side validation to verify file types beyond MIME headers. Monitor for suspicious file uploads and remove any files with executable extensions uploaded through the image upload functionality.
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
Affected software
pkg:github/neorazorx/facturascriptsRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-42879 is a code injection vulnerability in NeoRazorX's FacturaScripts accounting software (version 2025.81 and earlier). It arises from an authenticated unrestricted file upload flaw in the product image upload functionality. The vulnerability allows an attacker with valid credentials to upload a PHP file disguised as a GIF image by manipulating the file header to GIF89a, bypassing MIME type checks. The file is stored with its original extension, including executable extensions like .php, enabling execution of arbitrary code on the server. The issue is located in the addImageAction() method within Core/Lib/ExtendedController/ProductImagesTrait.php. No official patch or remediation level has been provided yet.
Potential Impact
An attacker who is authenticated can upload malicious PHP files disguised as images, potentially leading to arbitrary code execution on the server. This could compromise the confidentiality, integrity, and availability of the affected system. The CVSS vector indicates network attack vector, low attack complexity, required privileges, no user interaction, and impacts on confidentiality, integrity, and availability, all at low levels.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict authenticated user permissions to prevent unauthorized file uploads and consider implementing additional server-side validation to verify file types beyond MIME headers. Monitor for suspicious file uploads and remove any files with executable extensions uploaded through the image upload functionality.
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: 05/27/2026, 18:33:36 UTC
Last enriched: 06/03/2026, 20:28:05 UTC
Last updated: 07/26/2026, 20:52:04 UTC
Views: 88
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.