Skip to main content
Public proof of conceptFix availableAwaiting NVD analysis

CVE-2026-45262

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

A public proof of concept exists; no exploitation attested.

  • Published2026-12-04
  • Fixed in2026.2
  • WeaknessCWE-89 · CWE-918

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2026-12-0417:13CVE publishedCNA

Versions per branch

OSV
facturascripts/facturascripts
BranchAffectedFixed in
2026.2< 2026.22026.2

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • NeoRazorX facturascripts
    Affected
    • = < 2026.2no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2026-12-04

Fix

  1. Update facturascripts/facturascripts to 2026.2

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionpoc2026-12-04
  • CNACVSS 3.19.92026-12-04
  • CNAweakness (CWE)CWE-89, CWE-9182026-12-04
  • NVDweakness (CWE)CWE-89, CWE-918read 2026-12-04
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryCritical2026-07-14

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Published
2026-12-04
Last modified
2026-12-04
NVD status
Received
GitHub advisory
GHSA-5qmh-x653-g8qj

Frequently asked questions

What is CVE-2026-45262?

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.

Is CVE-2026-45262 actively exploited?

A proof-of-concept exploit exists for CVE-2026-45262, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2026-45262?

CVE-2026-45262 has a CVSS v3 base score of 9.9 (Critical severity), with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H.

Running facturascripts/facturascripts? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record