CVE-2026-70373
Received Received - Intake

SQL Injection in Koha Reports Module

Vulnerability report for CVE-2026-70373, 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-04

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

Description

Koha's reports/issues_stats.pl (the circulation statistics report) builds its calculation query in sub calculate by concatenating several user-controlled request parameters directly into the SQL string. The PeriodTypeSel, PeriodDaySel, and PeriodMonthSel parameters are interpolated raw into single-quoted equality and function-comparison fragments, and the Filter slots plus the Line and Column identifiers are likewise interpolated with no whitelist and no placeholder binding. 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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-04
Last Modified
2026-08-04
Generated
2026-08-04
AI Q&A
2026-08-04
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
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's reports module allows an authenticated staff user with reports permission to inject arbitrary SQL code through user-controlled parameters like PeriodTypeSel, PeriodDaySel, and PeriodMonthSel. The system directly concatenates these inputs into SQL queries without proper sanitization or parameter binding, enabling SQL injection attacks.

Detection Guidance

To detect this SQL injection vulnerability in Koha, inspect the reports/issues_stats.pl file for direct parameter interpolation in SQL queries. Check for user-controlled parameters like PeriodTypeSel, PeriodDaySel, PeriodMonthSel, Filter, Line, and Column being concatenated into SQL strings without sanitization or placeholders.

Impact Analysis

An attacker could exploit this to read sensitive data from the Koha database, including borrower passwords, two-factor authentication secrets, personal information, API keys, and session data. 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's data protection principles and potentially HIPAA's safeguards for protected health information. Organizations may face regulatory penalties, legal liabilities, and reputational damage due to non-compliance.

Mitigation Strategies

Immediately apply the latest Koha security patch addressing SQL injection in reports/issues_stats.pl. Restrict staff user permissions to only necessary reports module functions. Review database user privileges to limit access to sensitive tables like borrowers, api_keys, and sessions.

Chat Assistant

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

EPSS Chart