p PatchFirst

CVE-2026-25513

CVE-2026-25513 · FacturaScripts has SQL Injection vulnerability in API ORDER BY Clause

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 8.3 · High · EPSS 0.5% · Fix available

Published
Updated

Stack: php

Affected products and versions

  • facturascripts

    Versions
    • < 2025.81: Affected

    No fix published

  • facturascripts/facturascripts Packagist

    Versions
    • 2018.03
    • 2018.04
    • 2018.05
    • 2018.11
    • v2018.12
    • v2018.13
    • v2018.14
    • v2018.15
    • v2018.16
    • v2020.01
    • v2020.2
    • v2020.3
    • v2020.4
    • v2020.51
    • v2020.61
    • v2020.71
    • v2020.80
    • v2021
    • v2021.1
    • v2021.2
    • v2021.4
    • v2021.51
    • v2021.71
    • v2021.81
    • v2022.06
    • v2022.08
    • v2022.2
    • v2022.4
    • v2022.51
    • v2023.03
    • v2023.08
    • v2023.16
    • v2023.21
    • v2024
    • v2024.1
    • v2024.2
    • v2024.3
    • v2024.5
    • v2024.7
    • v2024.8
    • v2024.9
    • v2024.91
    • v2024.93
    • v2024.94
    • v2024.95
    • v2024.96
    • v2025
    • v2025.11
    • v2025.2
    • v2025.3
    • v2025.4
    • v2025.41
    • v2025.43
    • v2025.7
    • v2025.71
    • v2025.8
    Affected ranges
    • ECOSYSTEM: < 2025.81

    Update to 2025.81

Original sources

Check your server →