0.0
NA
CVE-2026-70371
Koha: SQL Injection in reports/issues_avg_stats.pl
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. 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-70371 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
Address SQL injection by sanitizing inputs and using parameterized queries.
  • Sanitize all user-supplied input for SQL queries.
  • Use parameterized queries instead of string concatenation.
  • Validate input against expected formats and ranges.
  • Restrict database user privileges to the minimum needed.
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-70371.

URL Resource
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42368
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-70371 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-70371 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-70371 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/issues_avg_stats.pl'], 'collectionURL': 'https://koha-community.org/', 'defaultStatus': 'unaffected'}]
    Added 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. 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=42368
    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.