A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-27891

CVE-2026-27891: FacturaScripts Zip Slip RCE Vulnerability

CVE-2026-27891 is a critical Zip Slip vulnerability in FacturaScripts that enables remote code execution through malicious ZIP uploads. This article covers the technical details, affected versions, impact, and mitigation.

Published: May 21, 2026

CVE-2026-27891 Overview

CVE-2026-27891 is a path traversal vulnerability in FacturaScripts, an open source accounting and invoicing platform. The flaw exists in the Plugins::add() function in Plugins.php, which fails to validate file paths inside uploaded ZIP archives. An authenticated attacker with plugin upload privileges can craft a malicious ZIP archive to write arbitrary .php files outside the plugins directory. Successful exploitation results in Remote Code Execution (RCE) under the web server's permissions. The issue affects FacturaScripts versions 2026 and below, and is fixed in version 2026.1.

Critical Impact

Authenticated attackers can achieve Remote Code Execution by exploiting a Zip Slip flaw to overwrite arbitrary PHP files on the server.

Affected Products

  • FacturaScripts versions 2026 and below
  • FacturaScripts core component Plugins.php
  • Fixed in FacturaScripts 2026.1

Discovery Timeline

  • 2026-05-18 - CVE-2026-27891 published to NVD
  • 2026-05-19 - Last updated in NVD database

Technical Details for CVE-2026-27891

Vulnerability Analysis

The vulnerability is a classic Zip Slip flaw classified under [CWE-20] Improper Input Validation. FacturaScripts allows administrators to install plugins by uploading ZIP archives through the Plugins::add() function. Before extraction, the testZipFile function inspects archive contents to confirm the archive contains exactly one root folder.

The validation logic uses explode on file paths and checks the resulting folder count against count($folders) != 1. This check confirms the structural shape of the archive but never inspects whether path components contain traversal sequences. As a result, malicious relative path segments survive validation.

During extraction, the underlying ZIP routine writes files using the supplied path verbatim. Any ../ segment escapes the plugins directory and lands wherever the PHP process holds write permissions, including the application root.

Root Cause

The root cause is missing sanitization of individual entry names inside the uploaded ZIP. The testZipFile routine validates archive topology but not the path content of each entry. Path traversal sequences embedded inside the otherwise valid root folder bypass the check.

Attack Vector

An attacker with privileges to upload plugins crafts a ZIP archive containing an entry named ValidPluginName/../../shell.php. The explode operation interprets ValidPluginName as the sole root folder, satisfying the single-folder constraint. When extraction proceeds, the ../../ sequence redirects the write outside the plugins directory.

The attacker then requests the dropped PHP file through the web server to execute arbitrary code. Because the vulnerability requires authenticated access with plugin upload rights, exploitation is gated by privilege but reachable over the network.

Detection Methods for CVE-2026-27891

Indicators of Compromise

  • Unexpected .php files appearing outside the Plugins/ directory, particularly in the web root
  • Plugin upload events followed by file system writes to non-plugin paths
  • ZIP archive entries containing ../ sequences in plugin upload logs
  • Web server access logs showing requests to unfamiliar PHP scripts immediately after a plugin installation

Detection Strategies

  • Inspect FacturaScripts audit logs for plugin install actions performed by administrative accounts and correlate with file creation timestamps
  • Scan the FacturaScripts installation directory for newly created PHP files that do not match the expected plugin layout
  • Statically analyze any uploaded ZIP archives for entries whose normalized path resolves outside the plugins directory

Monitoring Recommendations

  • Enable file integrity monitoring on the FacturaScripts web root and Plugins/ directory
  • Alert on PHP file creation events originating from the FacturaScripts process outside expected plugin subdirectories
  • Forward web server and application logs to a centralized SIEM and alert on post-upload requests to previously unseen PHP endpoints

How to Mitigate CVE-2026-27891

Immediate Actions Required

  • Upgrade FacturaScripts to version 2026.1 or later, which contains the official fix
  • Audit the FacturaScripts installation for unexpected PHP files outside the Plugins/ directory and remove any unauthorized artifacts
  • Restrict plugin upload privileges to a minimal set of trusted administrative accounts
  • Rotate credentials for any administrative accounts that may have been compromised prior to patching

Patch Information

The vendor addressed the vulnerability in FacturaScripts 2026.1. The fix is published in the upstream commit referenced in the GitHub Commit Update and documented in the GitHub Security Advisory GHSA-3pgc-xqg9-cfr6. The patch validates each ZIP entry path and rejects archives containing traversal sequences.

Workarounds

  • Disable plugin uploads entirely until the upgrade to 2026.1 is complete
  • Place the FacturaScripts application behind a web application firewall and block multipart uploads containing ZIP entries with ../ sequences
  • Restrict file system write permissions of the web server user to the Plugins/ directory only, preventing writes to the application root
bash
# Configuration example: restrict write permissions to the plugins directory only
chown -R root:www-data /var/www/facturascripts
find /var/www/facturascripts -type d -exec chmod 755 {} \;
find /var/www/facturascripts -type f -exec chmod 644 {} \;
chmod -R 775 /var/www/facturascripts/Plugins

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechFacturascripts

  • SeverityHIGH

  • CVSS Score7.2

  • EPSS Probability0.11%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-20
  • Technical References
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-3pgc-xqg9-cfr6
  • Related CVEs
  • CVE-2026-27964: FacturaScripts Reflected XSS Vulnerability

  • CVE-2026-27892: FacturaScripts Information Disclosure Flaw

  • CVE-2026-32699: FacturaScripts Auth Bypass Vulnerability

  • CVE-2026-23476: FacturaScripts Reflected XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English