Read the docs

Authenticated SQL injection in FacturaScripts REST API filter parameter

Priority HIGH 76CWE-89Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
SQL injection
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-89.

Summary

FacturaScripts versions before 2026.2 are affected. The sqlColumn function in Core/Where.php skips identifier escaping for field names containing parentheses, so the REST API filter parameter passes attacker-controlled SQL into the WHERE clause (CWE-89). An authenticated user can use this SQL injection to read arbitrary columns from any table.

Written with Claude Haiku 5.5 from the sources below · 2026-12-04

Description from the CNA

FacturaScripts is an open source accounting and invoicing software. Prior to version 2026.2, Core/Where.php::sqlColumn() exempts any field name that contains both ( and ) from identifier escaping. The two API filter builders (APIModel::getWhereValues and ApiAttachedFiles::getWhereValues) feed the raw request key ($_GET['filter'][$key]) straight into new DataBaseWhere($key, $value, '=', ...). When the model's all() reaches Where::multiSqlLegacy -> Where::sql() -> Where::sqlColumn($key), the parenthesis branch returns the attacker-controlled string unmodified. The string is concatenated into WHERE <attacker> = '<value>', which an attacker can pivot to WHERE (0)UNION SELECT ... FROM users WHERE(nick='admin')-- = 'value', leaking arbitrary columns from any table. This issue has been patched in version 2026.2.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
Fix Fixed facturascripts (NeoRazorX): 2026.2facturascripts/facturascripts (Packagist): 2026.2

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
NeoRazorXfacturascriptsbefore 2026.22026.2Patch availableCNA
—facturascripts/facturascripts (Packagist)before 2026.22026.2Patch availableGHSA-5qmh-x653-g8qj
  • facturascripts VendorNeoRazorX Affected before 2026.2 Fixed in 2026.2 Patch available CNA
  • facturascripts/facturascripts (Packagist) Vendor— Affected before 2026.2 Fixed in 2026.2 Patch available GHSA-5qmh-x653-g8qj

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:facturascripts:facturascripts:*:*:*:*:*:*:*:*——NeoRazorX
  • cpe:2.3:a:facturascripts:facturascripts:*:*:*:*:*:*:*:* Versions — — ·NeoRazorX

Remediation

Update FacturaScripts to version 2026.2, which fixes the issue for both the NeoRazorX facturascripts product and the Packagist facturascripts/facturascripts package.

Written with Claude Haiku 5.5 from the sources below · 2026-12-04

  • Fix · CNA facturascripts (NeoRazorX) Fixed in 2026.2
  • Fix · GHSA-5qmh-x653-g8qj facturascripts/facturascripts (Packagist) Fixed in 2026.2 Advisory →

Timeline

  1. 2026-12-04 Threatist record created from CVE-2026-45262
  2. 2026-12-04 CISA SSVC decision points changed

References

  • TI-2026-67066 Path traversal in NeoRazorX facturascripts CVSS 3.1CRITICAL 9.9
  • TI-2026-19336 FacturaScripts has a Stored Cross-Site Scripting (XSS) in "Observations" field via History View CVSS 3.1CRITICAL 9.0
  • TI-2026-104320 CSV formula injection in FacturaScripts CSV export CVSS 3.1HIGH 8.0
  • TI-2026-22235 Remote Code Execution (RCE) via Zip Slip in Plugin Upload Mechanism CVSS 3.1HIGH 7.2
  • TI-2026-31084 FacturaScripts: Unauthenticated phpinfo() Disclosure via Installer Endpoint in FacturaScripts CVSS 3.1MEDIUM 5.3
  • TI-2026-67841 PHP object injection in FacturaScripts via WidgetSelect CVSS 4.0MEDIUM 6.1
See all 31 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences