# CVE-2026-105107: Koha SQL injection in reports/cat_issues_top.pl via the Criteria, Filter and Limit request parameters

- Severity: High 7.2 (CVSS:4.0, scored by TuranSec) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 21% of CVEs (2026-12-01)
- Published: 2026-10-14T07:32:56.786Z
- Modified: 2026-10-15T15:53:08.287Z
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: TuranSec

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

(As written by CVE List.)

## Affected

- Koha Community Koha: before 24.11.00; from 24.11.00 before 24.11.19; from 25.05.00 before 25.05.14; from 25.11.00 before 25.11.08; from 26.05.00 before 26.05.03

## Every score

- TuranSec: CVSS:3.1 7.6 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L`
- TuranSec: CVSS:4.0 7.2 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:L/SC:N/SI:N/SA:N`

## References

- <https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42736> (issue-tracking)
- <https://download.koha-community.org/> (release-notes)
- <https://www.cve.org/CVERecord?id=CVE-2026-70372> (related)
- <https://www.cve.org/CVERecord?id=CVE-2026-6428> (related)

## Sources

- CVE List: [CVE-2026-105107](https://www.cve.org/CVERecord?id=CVE-2026-105107), CVE Terms of Use, modified 2026-10-14
- NVD: [CVE-2026-105107](https://nvd.nist.gov/vuln/detail/CVE-2026-105107), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2026-105107 · Whole record: https://cve.day/CVE-2026-105107.json · Rebuilt by cve.day 2026-11-25T22:59:44.610Z
