CVE-2026-27891 Remote Code Execution (RCE) via Zip Slip in Plugin Upload Mechanism
Attackers can achieve remote code execution by uploading a malicious ZIP file that exploits path traversal to overwrite PHP files.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-27891?
CVE-2026-27891 is a high-severity path traversal vulnerability in NeoRazorX facturascripts, published on 18 May 2026. An attacker needs administrator access to exploit it, with no action from the victim.
Official description
FacturaScripts is an open source accounting and invoicing software. Versions 2026 and below contain a critical vulnerability 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. 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. 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. This issue is fixed in version 2026.1.
Which versions are affected by CVE-2026-27891?
2 open source packages ship an affected version, including facturascripts/facturascripts.
| Package | Affected | Fixed in |
|---|---|---|
facturascripts/facturascripts Packagist | All versions to 2025.71 | None |
facturascripts/facturascripts Packagist | All versions to 2025.71 | None |
How do I fix CVE-2026-27891?
No fix has been published for CVE-2026-27891 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-27891 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-27891 exists.
Sources
Also known as GHSA-3pgc-xqg9-cfr6.