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.
https://koha-community.org/koha-25-05-12-released/
https://download.koha-community.org/koha-25.05.12.tar.gz
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42363