---
id: CVE-2026-70371
title: >-
  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
summary: >-
  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…
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-89
published: '2026-08-04'
updated: '2026-08-10'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-70371'
references:
  - url: 'https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42368'
    label: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c
  - url: 'https://download.koha-community.org/koha-25.05.12.tar.gz'
    label: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c
  - url: 'https://koha-community.org/koha-25-05-12-released/'
    label: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c
tags:
  - nvd
epss: 0.00567
epssPercentile: 0.44611
ingestedAt: '2026-08-10T12:39:47.514Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
