---
id: CVE-2026-70370
title: >-
  Koha's reports/catalogue_stats.pl builds dynamic SQL in sub calculate by
  interpolating the user-controlled Line and Column request parameters directly
  into identifier positions of the query (SELECT DISTINCTROW, GROUP BY, ORDER
  BY) with n…
summary: >-
  Koha's reports/catalogue_stats.pl builds dynamic SQL in sub calculate by
  interpolating the user-controlled Line and Column request parameters directly
  into identifier positions of the query (SELECT DISTINCTROW, GROUP BY, ORDER
  BY) with n…
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-70370'
references:
  - url: 'https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42363'
    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.44612
ingestedAt: '2026-08-10T12:39:47.480Z'
---

## Overview

Koha's reports/catalogue_stats.pl builds dynamic SQL in sub calculate by interpolating the user-controlled Line and Column request parameters directly into identifier positions of the query (SELECT DISTINCTROW, GROUP BY, ORDER BY) with no whitelist validation.

## Remediation

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