CVE-2026-70372
Received Received - Intake

SQL Injection in Koha Library Software

Vulnerability report for CVE-2026-70372, 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/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.

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 allows an authenticated staff user with reports module permissions to inject arbitrary SQL code through user-controlled parameters like Criteria, Filter, and Limit. The system fails to properly sanitize these inputs, allowing direct insertion into SQL query components such as SELECT, GROUP BY, ORDER BY, and LIMIT clauses.

Detection Guidance

This vulnerability can be detected by reviewing Koha's reports/bor_issues_top.pl file for SQL injection patterns. Look for direct concatenation of user-controlled parameters like Criteria, Filter, and Limit into SQL queries without proper sanitization or whitelisting.

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 non-compliance with GDPR and HIPAA due to unauthorized access to personal and sensitive data. GDPR requires protection of personal data, while HIPAA mandates safeguards for protected health information. A breach could lead to legal penalties and reputational damage.

Mitigation Strategies

Immediately update Koha to the latest patched version. If an update is not available, restrict access to the reports module to trusted staff only and review database user permissions to limit table access. Implement input validation and parameterized queries in bor_issues_top.pl.

Chat Assistant

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

EPSS Chart