CVE-2026-70372: CWE-89 SQL Injection in Koha Community Koha
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. 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.
AI Analysis
Technical Summary
The vulnerability exists in Koha's reports/bor_issues_top.pl script within the subroutine 'calculate', which constructs SQL queries dynamically by directly concatenating several user-controlled request parameters. This improper handling allows an authenticated staff user with the reports module permission to perform SQL Injection attacks. Exploitation can lead to unauthorized reading of any database table accessible by the Koha database user, including sensitive tables containing borrower credentials, two-factor authentication secrets, personal data, API keys, and session data. The CVSS v3.1 base score is 8.8, indicating high severity with network attack vector, low attack complexity, required privileges at the level of an authenticated staff user, no user interaction, and high impact on confidentiality, integrity, and availability.
Potential Impact
Successful exploitation allows an authenticated staff user to execute arbitrary SQL queries on the Koha database, leading to unauthorized disclosure of sensitive information including borrower password hashes, two-factor authentication secrets, personal data, API keys, and session information. This compromises confidentiality, integrity, and availability of the affected system's data.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict staff user permissions to minimize exposure and avoid granting reports module permissions to untrusted users. Monitor vendor channels for updates and apply patches promptly once released.
CVE-2026-70372: CWE-89 SQL Injection in Koha Community Koha
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. 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 v3.1
Score 8.8high
Affected software
Koha Community
Koha
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in Koha's reports/bor_issues_top.pl script within the subroutine 'calculate', which constructs SQL queries dynamically by directly concatenating several user-controlled request parameters. This improper handling allows an authenticated staff user with the reports module permission to perform SQL Injection attacks. Exploitation can lead to unauthorized reading of any database table accessible by the Koha database user, including sensitive tables containing borrower credentials, two-factor authentication secrets, personal data, API keys, and session data. The CVSS v3.1 base score is 8.8, indicating high severity with network attack vector, low attack complexity, required privileges at the level of an authenticated staff user, no user interaction, and high impact on confidentiality, integrity, and availability.
Potential Impact
Successful exploitation allows an authenticated staff user to execute arbitrary SQL queries on the Koha database, leading to unauthorized disclosure of sensitive information including borrower password hashes, two-factor authentication secrets, personal data, API keys, and session information. This compromises confidentiality, integrity, and availability of the affected system's data.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict staff user permissions to minimize exposure and avoid granting reports module permissions to untrusted users. Monitor vendor channels for updates and apply patches promptly once released.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- TuranSec
- Date Reserved
- 2026-08-04T07:13:07.992Z
- State
- PUBLISHED
Threat ID: 6a71ec42bf8831d539e19d34
Added to database: 08/04/2026, 13:42:26 UTC
Last enriched: 08/11/2026, 17:05:31 UTC
Last updated: 09/17/2026, 22:01:37 UTC
Views: 55
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.