CVE-2026-70371
Received Received - Intake

SQL Injection in Koha Reports Module via reports/issues_avg_stats.pl

Vulnerability report for CVE-2026-70371, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-04

Last updated on: 2026-08-10

Assigner: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-04
Last Modified
2026-08-10
Generated
2026-08-16
AI Q&A
2026-08-04
EPSS Evaluated
2026-08-15
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
koha koha 25.05.12
koha koha *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-89 The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in Koha allows an authenticated staff user with reports module permissions to inject arbitrary SQL code through unvalidated parameters like Line, Column, and Filter. The system directly concatenates these user-controlled inputs into SQL queries without proper sanitization or bound parameters.

Detection Guidance

To detect this SQL injection vulnerability in Koha's reports/issues_avg_stats.pl, inspect HTTP requests to the reports module for unvalidated parameters like Line, Column, or Filter. Check Koha logs for suspicious SQL queries containing raw user input in SELECT, GROUP BY, ORDER BY, or LIKE clauses. Enable database query logging to monitor for concatenated parameters.

Impact Analysis

An attacker could exploit this to read sensitive data from the Koha database, including borrower passwords, API keys, session tokens, and personal information. This could lead to unauthorized access, data breaches, or further system compromise.

Compliance Impact

This vulnerability could result in unauthorized access to personal data, violating GDPR and HIPAA requirements for data protection and confidentiality. Organizations may face legal penalties, reputational damage, and loss of compliance certifications.

Mitigation Strategies

Immediately restrict access to the reports module to only trusted staff users. Review and update Koha database user permissions to limit table access. Apply input validation and parameterized queries to prevent SQL injection in reports/issues_avg_stats.pl.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-70371. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart