CVE-2026-45262

9.9Critical

Published Dec 4, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite

9.9CVSS

Critical

0CVSS v3.110

Attack vector
Network
Complexity
Low
Privileges
Low
User action
None
Impact
Full C/I/A compromise
Weakness
CWE-89, CWE-918

What an attacker gets

Authenticated attackers can perform SQL injection to exfiltrate data from any table, including user credentials. This requires an active account on the FacturaScripts instance.

Root cause

The sqlColumn function fails to properly escape identifier strings containing parentheses, allowing raw input to be concatenated directly into SQL queries.

Affected versions

FacturaScripts prior to version 2026.2

CVSS v3.1 · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Fix & remediation

Upgrade to version 2026.2 or later. If you cannot patch immediately, restrict access to the API endpoints.

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

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

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-45262

More fully triaged vulnerabilities you may want to check next.