# CVE-2026-70371: Koha - SQL Injection in reports/issues_avg_stats.pl

- Severity: High 8.8 (CVSS:3.1, scored by TuranSec) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- 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.31%, higher than 25% of CVEs (2026-12-01)
- Published: 2026-08-04T13:00:10.726Z
- Modified: 2026-10-23T23:10:00.157Z
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: TuranSec

## Description

Koha's reports/issues_avg_stats.pl builds dynamic SQL in sub calculate by concatenating several user-controlled request parameters directly into the query string. The Line and Column parameters are not validated against any whitelist and land verbatim in identifier positions (SELECT DISTINCTROW, GROUP BY, ORDER BY), and each Filter slot is concatenated raw into single-quoted LIKE, BETWEEN, and comparison fragments with no bound parameters.

(As written by CVE List.)

## Affected

- Koha Community Koha: up to 24.11.17; from 25.05.00 up to 25.05.12; from 25.11.00 up to 25.11.06; from 26.05.00 up to 26.05.01

## Every score

- TuranSec: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42368> (third-party-advisory)
- <https://koha-community.org/koha-25-05-12-released/> (third-party-advisory)
- <https://download.koha-community.org/koha-25.05.12.tar.gz> (third-party-advisory)

## Sources

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

---

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