Skip to main content
← All vulnerabilities
CVE-2026-105107

Koha SQL injection in reports/cat_issues_top.pl via the Criteria, Filter and Limit request parameters

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 24.11.00, 24.11.19, 25.05.14, 25.11.08, 26.05.03
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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).

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • Koha Community Koha

    fixed in 24.11.00; From 24.11.00 · fixed in 24.11.19; From 25.05.00 · fixed in 25.05.14; From 25.11.00 · fixed in 25.11.08; From 26.05.00 · fixed in 26.05.03

References 4

bugs.koha-community.org

download.koha-community.org

cve.org