CVE-2026-70371 Details
Description
Koha's reports/issues_avg_stats.pl builds dynamic SQL in sub calculate by concatenating several user-controlled request parameters directly into the query string. The Line and Column parameters are not validated against any whitelist and land verbatim in identifier positions (SELECT DISTINCTROW, GROUP BY, ORDER BY), and each Filter slot is concatenated raw into single-quoted LIKE, BETWEEN, and comparison fragments with no bound parameters.
A SQL injection vulnerability has been identified in Koha's reports module, specifically in the script 'reports/issues_avg_stats.pl'. This issue arises because the script dynamically constructs SQL queries by directly concatenating user-controlled Filter parameters without proper validation. The vulnerability allows an authenticated staff user with reports module permission to inject arbitrary SQL, potentially leading to unauthorized access to sensitive data, such as password hashes and personal information from the borrowers table.
Users can upgrade to Koha versions 26.11.01, 25.11.06, 25.05.12, or 24.11.17 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Aug 4, 2026CISA-ADP
Assessed Aug 4, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42368 | TuranSec | ExploitIssue TrackingTechnical DescriptionVendor |
| https://download.koha-community.org/koha-25.05.12.tar.gz | TuranSec | Broken LinkVendor |
| https://koha-community.org/koha-25-05-12-released/ | TuranSec | Release NotesVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') | TuranSec |
Affected Products
| Product | Versions |
|---|---|
| Koha | 25.12.00.042 25.11.03.001 25.05.08.000 24.11.14.000 23.11.15.000 22.11.35.000 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 23, 2026 | CVE Translated | [email protected] |
| Aug 10, 2026 | CVE Modified | TuranSec |
| Aug 5, 2026 | CVE Modified | TuranSec |
| Aug 4, 2026 | CVE Modified | CISA-ADP |
| Aug 4, 2026 | New CVE Received | TuranSec |
Volerion