CVE-2026-70372
Koha: SQL Injection in reports/bor_issues_top.pl
Description
Koha's reports/bor_issues_top.pl builds dynamic SQL in sub calculate by concatenating several user-controlled request parameters directly into the query string. The Criteria parameter is only normalized by a table-name prefix and is never whitelisted, landing verbatim in identifier positions (SELECT DISTINCTROW, GROUP BY, ORDER BY); Filter values are concatenated raw into single-quoted LIKE, BETWEEN, and comparison fragments, and the Limit parameter is appended raw to a LIMIT clause. 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-70372
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 all user-supplied input before use.
- Use prepared statements for SQL queries.
- Implement input validation and whitelisting.
- Apply least privilege to database accounts.
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-70372.
| URL | Resource |
|---|---|
| https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42369 | |
| 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-70372 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-70372
weaknesses.
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-70372 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-70372 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/bor_issues_top.pl'], 'collectionURL': 'https://koha-community.org/', 'defaultStatus': 'unaffected'}] Added Description Koha's reports/bor_issues_top.pl builds dynamic SQL in sub calculate by concatenating several user-controlled request parameters directly into the query string. The Criteria parameter is only normalized by a table-name prefix and is never whitelisted, landing verbatim in identifier positions (SELECT DISTINCTROW, GROUP BY, ORDER BY); Filter values are concatenated raw into single-quoted LIKE, BETWEEN, and comparison fragments, and the Limit parameter is appended raw to a LIMIT clause. 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=42369 Added Reference https://download.koha-community.org/koha-25.05.12.tar.gz Added Reference https://koha-community.org/koha-25-05-12-released/