{"id":80185,"date":"2026-06-13T20:46:17","date_gmt":"2026-06-13T17:16:17","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2026-6428-koha-sql-injection\/"},"modified":"2026-06-13T20:46:17","modified_gmt":"2026-06-13T17:16:17","slug":"cve-2026-6428-koha-sql-injection","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2026-6428-koha-sql-injection\/","title":{"rendered":"CVE-2026-6428 &#8211; Koha SQL Injection"},"content":{"rendered":"<p>CVE ID :CVE-2026-6428<\/p>\n<p>  Published : June 13, 2026, 5:16 p.m. | 24\u00a0minutes ago<\/p>\n<p>  Description :SQL Injection in reports\/catalogue_out.pl in Koha Community Koha through 22.11.37, 23.x, 24.x before 24.11.16, 25.05.x before 25.05.11, 25.11.x before 25.11.05, 26.05.x before 26.05.01, and 26.11.x before 26.11.00 allows an authenticated staff user with the Reports module flag to read arbitrary data from the Koha application database via the Filter URL parameter when the Criteria parameter matches \/branchcode\/.<\/p>\n<p>The vulnerable sink in sub calculate concatenates the unmodified Filter request parameter directly into a LIKE clause of the auxiliary $strsth2 statement and executes it via DBI without bound parameters:<\/p>\n<p>my $f = @$filters[0];<br \/>\n$f =~ s\/*\/%\/g;<br \/>\n$strsth2 .= &#8221; AND $column LIKE &#8216;$f&#8217; &#8220;;<\/p>\n<p>This enables error-based SQL injection (e.g., via EXTRACTVALUE) and full read access to sensitive tables including borrowers (password hashes, 2FA secrets, PII), borrower_password_recovery, api_keys, and sessions.<\/p>\n<p>Proof of concept (error-based, single request):<\/p>\n<p>GET \/cgi-bin\/koha\/reports\/catalogue_out.pl?do_it=1&amp;output=screen&amp;Limit=10&amp;Criteria=branchcode&amp;Filter=x&#8217;+AND+EXTRACTVALUE(1,CONCAT(0x7e,VERSION(),0x7c,USER(),0x7c,DATABASE(),0x7e))&#8211;+-<br \/>\nCookie: CGISESSID=<\/p>\n<p>The response body contains the DBI exception leaking the MariaDB version, database user, client IP, and database name, after which arbitrary data can be paged out using LIMIT n,1 \/ SUBSTRING(&#8230;).<\/p>\n<p>The vulnerable sink was introduced in commit 6bb77ae3e4 (2008-07-09); CVE-2015-4633 patched the same class in sibling files but did not generalise the fix to reports\/catalogue_out.pl. Fixed in Koha 22.11.38, 24.11.16, 25.05.11, 25.11.05, 26.05.01, and 26.11.00 by replacing the raw concatenation with a parameterised placeholder.<\/p>\n<p>  Severity: 7.6 | HIGH<\/p>\n<p>  Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID :CVE-2026-6428 Published : June 13, 2026, 5:16 p.m. | 24\u00a0minutes ago Description :SQL Injection in reports\/catalogue_out.pl in Koha Community Koha through 22.11.37, 23.x, 24.x before 24.11.16, 25.05.x before 25.05.11, 25.11.x before 25.11.05, 26.05.x before 26.05.01, and 26.11.x before 26.11.00 allows an authenticated staff user with the Reports module flag to read arbitrary data &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-80185","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/80185","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=80185"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/80185\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=80185"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=80185"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=80185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}