Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain admin credentials
-
DeliveryAuthenticate to FacturaScripts panel
-
ExploitNavigate to plugin upload interface
-
InstallCraft malicious ZIP with path traversal
-
C2Upload ZIP archive
-
ExecuteTrigger extraction via plugin installation
-
ImpactWebshell written to web root
-
Step 8Execute arbitrary system commands
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | Requires authenticated access with high-privilege administrative role in FacturaScripts-specifically, an account with permission to install plugins through the 'Add Plugin' administrative interface. The CVSS vector confirms PR:H (high privileges required). This functionality is standard in FacturaScripts administrative panels and likely enabled by default for administrator roles. No special server configuration, non-default feature flags, or specific PHP settings are required. Exploitation is NOT possible for unauthenticated users or low-privilege authenticated users without plugin installation rights. The limiting factor is the authentication barrier-organizations with strong administrative credential security (MFA, password policies, session management) face substantially lower risk than those with weak admin account protection or shared administrative credentials. |
| Impact | Real-world risk is moderate despite the High CVSS severity of 7.2. The CVSS vector (AV:N/AC:L/PR:H/UI:N) reveals that exploitation requires high-privilege authentication-specifically, administrative access to the FacturaScripts application. This significantly constrains the attack surface to three primary scenarios: compromised administrator credentials, malicious insiders with legitimate admin access, or chained exploitation following an initial authentication bypass vulnerability. The public proof-of-concept lowers the technical barrier for exploitation once admin access is obtained. No EPSS score or CISA KEV status is provided in the available data, suggesting no confirmed widespread or automated exploitation at analysis time. The vulnerability is not exploitable by external unauthenticated attackers, which substantially reduces urgency compared to similar RCE flaws with PR:N. However, the complete system compromise potential (full CIA triad impact) makes this critical for environments where administrator account security cannot be guaranteed or where multi-tenant installations exist. The 'Add Plugin' functionality is a standard administrative feature likely enabled by default, meaning no special configuration increases attack surface. |
| Exploit ScenarioDerived | An attacker who has compromised an administrator account (through phishing, credential stuffing, or session hijacking) logs into the FacturaScripts administrative panel. They navigate to the plugin management section and upload a specially crafted ZIP file named 'legitimate-plugin.zip' containing an entry 'AccountingTools/../../webshell.php' with PHP code payload '<?php system($_GET['cmd']); ?>'. The vulnerable testZipFile function sees 'AccountingTools' as a valid root folder and allows extraction. The web server writes webshell.php to the application root directory. The attacker then accesses https://victim-site.com/webshell.php?cmd=cat%20/etc/passwd to execute arbitrary commands with web server privileges, exfiltrate database credentials from configuration files, and establish persistent backdoor access. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 07, 2026
Remote code execution in FacturaScripts ≤2025.71 allows authenticated administrators to upload malicious ZIP files containing path traversal sequences (Zip Slip attack) through the plugin installation mechanism. The vulnerable Plugins::add() function fails to sanitize file paths within ZIP archives, enabling attackers to write arbitrary PHP files outside the plugins directory and execute system commands. A public proof-of-concept exists demonstrating full system compromise. CVSS scores this at 7.2 (High) but requires high-privilege authentication (PR:H), significantly limiting real-world attack surface to scenarios involving compromised admin credentials or malicious insiders.
RemediationAI
No vendor-released patch has been identified at the time of analysis according to the GitHub advisory data. The upstream repository (https://github.com/NeoRazorX/facturascripts) has published advisory GHSA-3pgc-xqg9-cfr6 acknowledging the vulnerability but no fixed version is specified in available data. Until an official patch is released, implement these compensating controls: (1) Restrict plugin installation permissions to only fully trusted administrators and audit all accounts with this capability; (2) Implement file integrity monitoring on the web root directory to detect unauthorized PHP file creation; (3) Configure web server permissions using principle of least privilege-ensure the PHP process cannot write to the web root or application base directory, only to designated upload/cache directories (note: this may break legitimate plugin installation functionality); (4) Deploy a web application firewall rule to inspect uploaded ZIP files for path traversal sequences in entry names, though this may cause false positives with legitimately complex plugin structures. Monitor the official GitHub repository and GHSA-3pgc-xqg9-cfr6 for patch availability.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This vulnerability affects FacturaScripts, a PHP-based open-source billing and accounting application (pkg:composer/facturascripts_facturascripts). The flaw resides in the Plugins.php file's testZipFile validation logic, which implements insufficient path traversal protection during plugin ZIP extraction. The code uses PHP's explode() function to parse file paths and verify a single root folder exists, but does not normalize or sanitize path components before extraction. This represents a classic CWE-20 (Improper Input Validation) failure pattern. The vulnerability exploits the semantic gap between path validation (which operates on split string arrays) and file extraction (which processes literal paths including '../' sequences). During extraction, the ZipArchive class writes files based on unsanitized paths, allowing directory traversal outside the intended plugins directory to any location where the web server process has write permissions.
Know when PHP gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Primary rating from Vendor (https://github.com/NeoRazorX/facturascripts) · only source for this CVE.
CVSS VectorVendor: https://github.com/NeoRazorX/facturascripts
Lifecycle Timeline
2DescriptionCVE.org
Summary
A Critical vulnerability exists in the Plugins::add() function. The system fails to properly validate the file paths within uploaded ZIP archives. This allows an attacker to perform a Zip Slip attack, leading to Arbitrary File Write and Remote Code Execution (RCE) by overwriting sensitive .php files outside the designated plugins directory.
Details
The vulnerability is located in Plugins.php. While the testZipFile function attempts to validate that the ZIP contains only one root folder, it does not sanitize or validate the individual file paths within that folder.
// Vulnerable logic in Plugins.php
for ($index = 0; $index < $zipFile->numFiles; $index++) {
$data = $zipFile->statIndex($index);
$path = explode('/', $data['name']);
if (count($path) > 1) {
$folders[$path[0]] = $path[0];
}
}An attacker can bypass this check by naming a file ValidPluginName/../../shell.php. The explode function will see ValidPluginName as the root folder, satisfying the count($folders) != 1 check. However, during extraction, the ../../ sequence triggers a path traversal, allowing the file to be written anywhere the web server has permissions the root directory.
PoC
Prepare Malicious ZIP: Use a tool (like evilarc) or a script to create a ZIP file where one of the entries is named: MyPlugin/../../rce.php Inject Payload: Inside rce.php, put a simple shell: <?php system($_GET['cmd']); ?> Upload: Navigate to the "Add Plugin" section in FacturaScripts and upload the malicious ZIP. Execution: Access the shell via https://target.com/rce.php?cmd=whoami.
Impact
Confidentiality: High (Attacker can read all database configs and files). Integrity: High (Attacker can modify any file on the server). Availability: High (Attacker can delete the entire installation). > https://github.com/ZeroXJacks/CVEs/blob/main/2026/CVE-2026-27891.md
Executive ViewAI
FacturaScripts versions 2025.71 and earlier contain a remote code execution vulnerability in the plugin installation mechanism that allows authenticated administrators to execute arbitrary system commands through malicious ZIP file uploads. Organizations running affected versions should immediately restrict administrator access and monitor for unauthorized plugin installations, as successful exploitation could result in complete system compromise despite requiring high-privilege credentials.
No vendor-released patch identified at time of analysis. Interim mitigations: restrict plugin installation to trusted administrators only; disable or remove the plugin installation feature from web-accessible interfaces; implement file integrity monitoring on the FacturaScripts installation directory; maintain offline backups and implement real-time file upload scanning using anti-malware tools; monitor system process execution logs for suspicious PHP execution patterns.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-30808
GHSA-3pgc-xqg9-cfr6
NVD
CVE.org
EPSS
VulDB
Exploit-DB