# CVE-2026-27891: Remote Code Execution (RCE) via Zip Slip in Plugin Upload Mechanism

- Severity: High 7.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 45% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-07T19:32:14.000Z
- Modified: 2026-07-24T13:10:00.223Z
- Also known as: GHSA-3pgc-xqg9-cfr6
- Weaknesses: CWE-20, CWE-434
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- NeoRazorX facturascripts: < 2026.1
- facturascripts/facturascripts (Packagist): up to 2025.71

## Every score

- GitHub_M: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/NeoRazorX/facturascripts/security/advisories/GHSA-3pgc-xqg9-cfr6> (exploit, web)
- <https://github.com/NeoRazorX/facturascripts/commit/2dda7c6f3b241fa84a0629166783720b882725fd>
- <https://github.com/NeoRazorX/facturascripts> (package)

## Sources

- CVE List: [CVE-2026-27891](https://www.cve.org/CVERecord?id=CVE-2026-27891), CVE Terms of Use, modified 2026-05-19
- GitHub Advisory Database: [GHSA-3pgc-xqg9-cfr6](https://github.com/advisories/GHSA-3pgc-xqg9-cfr6), CC-BY-4.0, modified 2026-05-07
- NVD: [CVE-2026-27891](https://nvd.nist.gov/vuln/detail/CVE-2026-27891), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-27891 · Whole record: https://cve.day/CVE-2026-27891.json · Rebuilt by cve.day 2026-11-25T22:59:21.937Z
