0.0
NA
CVE-2026-70370
Koha: SQL Injection in reports/catalogue_stats.pl
Description

Koha's reports/catalogue_stats.pl builds dynamic SQL in sub calculate by interpolating the user-controlled Line and Column request parameters directly into identifier positions of the query (SELECT DISTINCTROW, GROUP BY, ORDER BY) with no whitelist validation. When Line contains itemcallnumber and the cotedigits parameter is truthy, cotedigits is additionally concatenated raw as the numeric argument of a LEFT() call. An authenticated staff user holding the reports module permission can inject arbitrary SQL and read any table reachable by the Koha database user, including borrowers (password hashes, two-factor secrets, personal data), api_keys, and sessions.

INFO

Published Date :

Aug. 4, 2026, 1:18 p.m.

Last Modified :

Aug. 4, 2026, 1:18 p.m.

Remotely Exploit :

No

Source :

309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c
Affected Products

The following products are affected by CVE-2026-70370 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

No affected product recoded yet

Solution
Sanitize user input for SQL queries to prevent injection attacks.
  • Validate and sanitize Line and Column parameters.
  • Avoid direct interpolation of user input into SQL.
  • Use parameterized queries or prepared statements.
  • Review database user permissions.
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2026-70370.

URL Resource
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42363
https://download.koha-community.org/koha-25.05.12.tar.gz
https://koha-community.org/koha-25-05-12-released/
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-70370 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-70370 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-70370 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • New CVE Received by 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c

    Aug. 04, 2026

    Action Type Old Value New Value
    Added Affected [{'repo': 'https://gitlab.com/koha-community/Koha', 'vendor': 'Koha Community', 'product': 'Koha', 'versions': [{'status': 'affected', 'version': '0', 'lessThan': '24.11.17', 'versionType': 'semver'}, {'status': 'affected', 'version': '25.05.00', 'lessThan': '25.05.12', 'versionType': 'semver'}, {'status': 'affected', 'version': '25.11.00', 'lessThan': '25.11.06', 'versionType': 'semver'}, {'status': 'affected', 'version': '26.05.00', 'lessThan': '26.05.01', 'versionType': 'semver'}], 'programFiles': ['reports/catalogue_stats.pl'], 'collectionURL': 'https://koha-community.org/', 'defaultStatus': 'unaffected'}]
    Added Description Koha's reports/catalogue_stats.pl builds dynamic SQL in sub calculate by interpolating the user-controlled Line and Column request parameters directly into identifier positions of the query (SELECT DISTINCTROW, GROUP BY, ORDER BY) with no whitelist validation. When Line contains itemcallnumber and the cotedigits parameter is truthy, cotedigits is additionally concatenated raw as the numeric argument of a LEFT() call. An authenticated staff user holding the reports module permission can inject arbitrary SQL and read any table reachable by the Koha database user, including borrowers (password hashes, two-factor secrets, personal data), api_keys, and sessions.
    Added CWE CWE-89
    Added Reference https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42363
    Added Reference https://download.koha-community.org/koha-25.05.12.tar.gz
    Added Reference https://koha-community.org/koha-25-05-12-released/
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.