CVE Catalog

CVE-2026-45262

CriticalCVSS 9.9
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Elevated risk
0.82%

59th percentile - higher than 59% of all known CVEs

Summary

FacturaScripts before version 2026.2 in Core/Where.php::sqlColumn() exempts field names containing both ( and ) from identifier escaping. The API filter builders feed the raw request key into DataBaseWhere, allowing an attacker to inject SQL conditions and perform UNION SELECT to leak arbitrary columns from tables.

Risk Assessment

The SQL injection vulnerability allows an attacker to read arbitrary data from the database, including credentials and other sensitive information. This can lead to a full confidentiality breach of the accounting system.

Recommendation

Update FacturaScripts to version 2026.2 or later. Until patched, consider restricting access to API endpoints that use filters.

Other vulnerabilities in FacturaScripts

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS