The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-25513

CVE-2026-25513: FacturaScripts SQL Injection Vulnerability

CVE-2026-25513 is a SQL injection flaw in FacturaScripts REST API that allows authenticated users to execute arbitrary SQL queries. This article covers the technical details, affected versions, impact, and mitigation.

Published: February 6, 2026

CVE-2026-25513 Overview

CVE-2026-25513 is a critical SQL injection vulnerability affecting FacturaScripts, an open-source enterprise resource planning (ERP) and accounting software. Prior to version 2025.81, the application contains a severe flaw in its REST API that allows authenticated API users to execute arbitrary SQL queries through the sort parameter. The vulnerability exists in the ModelClass::getOrderBy() method where user-supplied sorting parameters are directly concatenated into the SQL ORDER BY clause without proper validation or sanitization.

Critical Impact

Authenticated attackers can leverage this SQL injection vulnerability to extract sensitive financial data, customer records, and potentially gain unauthorized access to the underlying database, compromising the confidentiality of enterprise business data.

Affected Products

  • FacturaScripts versions prior to 2025.81
  • All REST API endpoints supporting sorting functionality
  • Installations using PostgreSQL or MySQL database backends

Discovery Timeline

  • 2026-02-04 - CVE-2026-25513 published to NVD
  • 2026-02-05 - Last updated in NVD database

Technical Details for CVE-2026-25513

Vulnerability Analysis

This SQL injection vulnerability stems from improper input validation in the FacturaScripts REST API. The flaw resides in the ModelClass::getOrderBy() method, which processes user-supplied sorting parameters for API queries. When an authenticated user submits a request with a malicious sort parameter, the input is directly concatenated into the SQL ORDER BY clause without any sanitization or parameterized query handling.

The attack requires network access and low-privilege authentication to the REST API. Once exploited, an attacker can extract confidential data from the database, potentially including financial records, customer information, invoices, and other sensitive business data managed by the ERP system. The vulnerability affects all API endpoints that implement sorting functionality, significantly expanding the attack surface.

Root Cause

The root cause is categorized under CWE-20 (Improper Input Validation). The getOrderBy() method fails to validate or sanitize the sorting parameter before incorporating it into the SQL query. Instead of using parameterized queries or implementing an allowlist of permitted sort columns, the application directly concatenates user input into the ORDER BY clause, creating a classic SQL injection vector.

Attack Vector

The vulnerability is exploitable over the network by any authenticated API user. An attacker can craft malicious HTTP requests to any API endpoint that supports sorting, injecting SQL syntax through the sort parameter. This allows extraction of database contents through techniques such as UNION-based injection, error-based injection, or blind SQL injection, depending on the database configuration and error handling.

The security patch addresses this vulnerability by implementing proper column escaping in the database engine classes:

php
 
     public function castInteger($link, $column): string
     {
-        return 'CAST(' . $this->escapeColumn($link, $column) . ' AS unsigned)';
+        return 'CAST(' . $this->escapeColumn($link, $column) . ' AS integer)';
     }
 
     /**

Source: GitHub Commit Reference

Detection Methods for CVE-2026-25513

Indicators of Compromise

  • Unusual or malformed sort parameter values in REST API request logs containing SQL syntax such as UNION, SELECT, --, or '
  • Database query logs showing unexpected ORDER BY clauses with subqueries or UNION statements
  • Anomalous API activity from authenticated users accessing multiple endpoints with sorting parameters
  • Database errors in application logs indicating SQL syntax errors from the API layer

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect SQL injection patterns in the sort parameter across all API endpoints
  • Deploy database activity monitoring to identify queries with suspicious ORDER BY clause constructions
  • Enable detailed logging on FacturaScripts REST API endpoints and correlate with database query logs
  • Use SentinelOne Singularity to monitor for process behaviors consistent with data exfiltration following API exploitation

Monitoring Recommendations

  • Configure alerts for API requests containing SQL keywords in query parameters
  • Monitor database connection patterns for unusual query volumes or data access from the application service account
  • Implement rate limiting on API endpoints to slow potential automated exploitation attempts
  • Review authentication logs for API users with anomalous access patterns or privilege escalation attempts

How to Mitigate CVE-2026-25513

Immediate Actions Required

  • Upgrade FacturaScripts to version 2025.81 or later immediately
  • Audit REST API access logs for evidence of exploitation attempts targeting the sort parameter
  • Review database access patterns and query logs for signs of data exfiltration
  • Temporarily restrict API access to trusted networks or users until patching is complete
  • Rotate database credentials if compromise is suspected

Patch Information

The vulnerability has been patched in FacturaScripts version 2025.81. The fix implements proper sanitization in the DbQuery class and updates the database engine handlers to properly escape column references. For detailed information about the security fix, refer to the GitHub Security Advisory GHSA-cjfx-qhwm-hf99 and the security commit.

Workarounds

  • Deploy a Web Application Firewall with SQL injection detection rules specifically targeting API endpoints
  • Implement network-level restrictions to limit REST API access to trusted IP ranges
  • Disable or restrict sorting functionality in API responses at the reverse proxy level until patching is possible
  • Enable enhanced database query logging to detect and respond to exploitation attempts
bash
# Configuration example - Restrict API access at nginx level
location /api/ {
    # Limit API access to internal networks
    allow 10.0.0.0/8;
    allow 192.168.0.0/16;
    deny all;
    
    # Block common SQL injection patterns in query strings
    if ($query_string ~* "(union|select|insert|update|delete|drop|--|')") {
        return 403;
    }
    
    proxy_pass http://facturascripts_backend;
}

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechFacturascripts

  • SeverityHIGH

  • CVSS Score8.3

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-20
  • Technical References
  • GitHub Commit Reference

  • GitHub Security Advisory GHSA-cjfx-qhwm-hf99
  • Related CVEs
  • CVE-2026-25514: FacturaScripts SQL Injection Vulnerability

  • CVE-2026-23997: FacturaScripts Stored XSS Vulnerability

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

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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