cvelo
P2 · HighCVSS 9.9

FacturaScripts: Authenticated SQL injection in the REST API filter parameter via parenthesis bypass in `Where::sqlColumn`

  • CVE-2026-45262
  • GHSA-5qmh-x653-g8qj
  • EUVD-2026-144495

Summary

FacturaScripts, an open source accounting and invoicing application, contains an authenticated SQL injection flaw in its REST API filter handling. In versions prior to 2026.2, the sqlColumn() function in Core/Where.php skips identifier escaping for any field name containing both parentheses, and the API filter builders pass raw request keys from the filter parameter directly into the query. An attacker with valid API access can craft a key that injects arbitrary SQL, which can be used to read columns from any database table, such as user credentials. The issue is rated CVSS 9.9 and has been fixed in version 2026.2. It is not listed in the CISA known exploited vulnerabilities catalog.

AI summary · verify against the vendor advisory

Description

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.

Text from the CVE.org record.

Recommendation

No source states a fixed version. Check the vendor advisory.

Affected

  • NeoRazorX facturascripts

    Affected versionsFixed in
    < 2026.2none stated

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.