Skip to main content
EPSS 0.3%top 81%

CVE-2026-105107: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in Koha Community Koha

0
High
VulnerabilityCVE-2026-105107cvecve-2026-105107cwe-89
Published: 10/14/2026 (10/14/2026, 07:32:56 UTC)
Source: CVE Database V5
Vendor/Project: Koha Community
Product: Koha

Description

Koha is vulnerable to SQL injection in the Most-circulated items report. The reports/cat_issues_top.pl script (sub calculate) concatenates the user-controlled Criteria, Filter, and Limit request parameters directly into dynamic SQL. Criteria is only prefix-normalized and never validated against an allow-list, so it is inserted verbatim into identifier positions (SELECT DISTINCTROW, GROUP BY, ORDER BY, and the main calculation query). Filter values are concatenated raw into single-quoted LIKE, BETWEEN, and comparison fragments. Limit is appended raw to a LIMIT clause. An authenticated staff user with the reports module permission (not requiring superlibrarian) can inject arbitrary SQL and read any table reachable by the Koha database user, including borrowers (userid and bcrypt password hashes, two-factor secrets, personal data), api_keys, and sessions. The issue is fixed in Koha 24.11.19, 25.05.14, 25.11.08, and 26.05.03, and in the 26.11 development branch. This is the unpatched twin of reports/bor_issues_top.pl (CVE-2026-70372).

CVSS v3.1

Score 7.6high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
Low
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L

Affected software

Koha Community

Koha

Affected versions
>=0 <24.11.00>=24.11.00 <24.11.19>=25.05.00 <25.05.14>=25.11.00 <25.11.08>=26.05.00 <26.05.03
GitHub Actionsmore threats →ai
koha-community/Koha
pkg:github/koha-community/Koha
Affected versions
>=0 <24.11.00>=24.11.00 <24.11.19>=25.05.00 <25.05.14>=25.11.00 <25.11.08>=26.05.00 <26.05.03

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/14/2026, 08:03:29 UTC

Technical Analysis

CVE-2026-105107 describes a SQL injection vulnerability in Koha Community's Koha software, specifically in the reports/cat_issues_top.pl script's calculate subroutine. User-controlled parameters Criteria, Filter, and Limit are concatenated directly into dynamic SQL statements without adequate validation. Criteria is inserted verbatim into SQL identifier positions, Filter is concatenated raw into LIKE, BETWEEN, and comparison clauses, and Limit is appended raw to the LIMIT clause. This allows an authenticated staff user with reports module permission to inject arbitrary SQL and read any table accessible by the Koha database user, including sensitive tables containing borrower credentials, API keys, and session data. The vulnerability is addressed in Koha versions 24.11.19, 25.05.14, 25.11.08, and 26.05.03, as well as the 26.11 development branch. This vulnerability is related to but distinct from CVE-2026-70372 affecting a similar script.

Potential Impact

An authenticated staff user with reports module permission can exploit this vulnerability to execute arbitrary SQL queries on the Koha database. This can lead to unauthorized disclosure of sensitive data including borrower user IDs, bcrypt password hashes, two-factor authentication secrets, personal data, API keys, and session information. The vulnerability has a high severity rating with a CVSS score of 7.6, indicating significant confidentiality and availability impact.

Mitigation Recommendations

This vulnerability is fixed in Koha versions 24.11.19, 25.05.14, 25.11.08, and 26.05.03. Users should upgrade to one of these fixed versions or later to remediate the issue. No other mitigation or temporary workaround is documented. Since this is not a cloud service, patching the affected software versions is required to resolve the vulnerability.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
TuranSec
Date Reserved
2026-10-03T11:45:52.353Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6acf33f82cdf04f6565a99bb

Added to database: 10/14/2026, 07:49:12 UTC

Last enriched: 10/14/2026, 08:03:29 UTC

Last updated: 10/14/2026, 19:00:32 UTC

Views: 15

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses