{"id":"CVE-2026-25513","published":"2026-02-04T19:59:57Z","modified":"2026-02-05T14:32:21Z","title":"FacturaScripts has SQL Injection vulnerability in API ORDER BY Clause","vendor":"NeoRazorX","product":"facturascripts","tier":"tail","description":{"text":"FacturaScripts is open-source enterprise resource planning and accounting software. Prior to version 2025.81, FacturaScripts contains a critical SQL injection vulnerability in the REST API that allows authenticated API users to execute arbitrary SQL queries through the sort parameter. The vulnerability exists in the ModelClass::getOrderBy() method where user-supplied sorting parameters are directly concatenated into the SQL ORDER BY clause without validation or sanitization. This affects all API endpoints that support sorting functionality. This issue has been patched in version 2025.81.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.3,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00524,"percentile":0.45393,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"},{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-1286","name":"Improper Validation of Syntactic Correctness of Input"},{"id":"CWE-943","name":"Improper Neutralization of Special Elements in Data Query Logic"}],"references":[{"url":"https://github.com/NeoRazorX/facturascripts/security/advisories/GHSA-cjfx-qhwm-hf99","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/NeoRazorX/facturascripts/commit/1b6cdfa9ee1bb3365ea4a4ad753452035a027605","tags":["x_refsource_MISC"]}],"priority":{"score":19.9,"factors":[{"name":"EPSS percentile","points":9.08},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.81}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-04-11","earliestUrl":"https://github.com/lukasz-rybak/CVE-2026-25513","repos":[{"name":"lukasz-rybak/CVE-2026-25513","url":"https://github.com/lukasz-rybak/CVE-2026-25513","stars":0,"created":"2026-04-11"}]},"first":{"date":"2026-04-11","source":"PoC-in-GitHub","url":"https://github.com/lukasz-rybak/CVE-2026-25513"},"provenance":"source"},"vendorSlug":"neorazorx","affectedVersions":[{"vendor":"NeoRazorX","product":"facturascripts","versions":["< 2025.81"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-02-05T14:20:13.323107Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"facturascripts/facturascripts","vulnerableRanges":["<2025.81"],"patched":["2025.81"],"from":["GHSA-cjfx-qhwm-hf99"],"provenance":"source"}],"summary":{"text":"FacturaScripts, an open-source ERP and accounting application from NeoRazorX, contains an SQL injection flaw in its REST API, where the sort parameter is concatenated unvalidated into the ORDER BY clause by the ModelClass::getOrderBy() method, affecting all API endpoints that support sorting. An attacker with network access and valid API credentials (low-privileged authentication, no user interaction required) can execute arbitrary SQL queries through that sort parameter, with high confidentiality impact on the underlying database.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:30:00Z"},"euvd":{"id":"EUVD-2026-5359","exploited":false,"provenance":"source"}}