Skip to main content

Koha CVE-2026-71288

| EUVDEUVD-2026-53373 HIGH
SQL Injection (CWE-89)
2026-08-05 TuranSec GHSA-q274-qf66-4hq6
8.8
CVSS 3.1 · Vendor: TuranSec
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as low-privilege Koha staff
  2. Delivery
    Navigate to guided report builder
  3. Exploit
    Craft malicious order_by CGI parameter
  4. Execution
    Trigger time-based blind SQL injection
  5. Persist
    Enumerate database schema
  6. Impact
    Extract patron PII and staff credential hashes

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a valid Koha staff account with either the create_reports permission (to build and run reports) or the execute_reports permission (to run pre-existing reports) - both described in the CVE as low-privilege permissions routinely granted to non-administrative library staff such as branch librarians or catalogers. The attacker must be able to send HTTP requests to the Koha staff web interface (reports/guided_reports.pl), meaning the Koha Reports module must be reachable and the account must be able to authenticate. Unauthenticated attackers cannot reach the vulnerable endpoint. The attack does not require admin-level access, superlibrarian status, or any special network position beyond access to the Koha staff interface. Exploitation is constrained to time-based blind technique, which is slower and produces higher request volume than error-based or UNION-based SQLi, potentially increasing detectability in environments with active request-rate monitoring.

Impact

The CVSS 3.1 score of 8.8 with vector AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H is well-calibrated to the actual risk. The key risk-limiting factor is PR:L: exploitation is gated behind a valid staff account with create_reports or execute_reports permission. In library environments these permissions are commonly delegated to non-admin staff (e.g., branch librarians, circulation managers), meaning the insider-threat and compromised-credential surface is broad. Attack complexity is genuinely low once authenticated - time-based blind ORDER BY injection is a documented technique trivially automatable with tools like sqlmap. No EPSS score was provided in the input data, so exploitation probability cannot be quantified numerically. No CISA KEV listing and no public POC have been identified, which somewhat reduces urgency relative to an actively exploited flaw, but does not reduce the structural severity. The high C/I/A impact is realistic: full read access to patron PII and credential hashes, and potential write/delete access to library records. This is a genuine high-priority remediation target for any multi-staff Koha deployment, not a theoretical or inflated score.

Exploit ScenarioDerived

A library branch manager with the execute_reports permission logs into the Koha staff client and sends a crafted HTTP POST to reports/guided_reports.pl with the order_by parameter set to a MySQL time-based payload such as (CASE WHEN (SUBSTRING(password,1,1)='a') THEN title ELSE (SELECT 1 FROM (SELECT SLEEP(5))x) END). By measuring server response delays across iterated requests, the attacker enumerates staff password hashes and patron PII character by character from the database. No public proof-of-concept has been identified, but this attack pattern is automatable with standard tools and requires no special exploit development.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 05, 2026

SQL injection in Koha's guided report builder (reports/guided_reports.pl) allows any authenticated staff member holding the low-privilege create_reports or execute_reports permission to perform time-based blind SQL injection against the Koha database, which stores patron PII, borrowing history, and staff/LDAP credentials. The order_by and dynamically-named {order}_ovalue CGI parameters are concatenated verbatim into an ORDER BY clause by C4::Reports::Guided with no allowlist, escaping, or prepared-statement binding - a structural defect, since SQL placeholders cannot parameterize column names. No public exploit or CISA KEV listing has been identified at time of analysis, but the attack technique is well-understood and the affected permission is routinely granted to non-admin library staff.

RemediationAI

No vendor-released patch has been identified at time of analysis; monitor the Koha Community GitHub repository at https://github.com/Koha-Community/Koha for commits addressing the ORDER BY injection in reports/guided_reports.pl. The primary compensating control is to immediately audit and revoke the create_reports and execute_reports permissions from any staff account that does not have a strict operational need - this directly eliminates the attack surface for non-admin users, though it may disrupt legitimate reporting workflows. As a secondary control, place the Koha web interface behind a WAF with a ruleset targeting ORDER BY injection patterns (e.g., ModSecurity CRS rules for SQL injection); note that WAF bypass is feasible for skilled attackers and this is not a substitute for a code fix. Network-level restriction of the Koha staff interface to trusted internal IP ranges reduces exposure to external attackers but does not address insider threat. The correct permanent fix requires implementing an explicit server-side allowlist of permitted column names in reports/guided_reports.pl before any user-supplied order_by or _ovalue value is interpolated into the query string.

Affected VersionsENISA

Koha 0 ≤26.05.01-1

Affected Packages

euvd koha no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Koha is the world's most widely deployed open-source integrated library system (ILS), used by thousands of public, academic, and special libraries. The vulnerability is rooted in CWE-89 (SQL Injection) and exists because reports/guided_reports.pl calls $input->multi_param('order_by') and $input->param($order . '_ovalue') and concatenates both directly into the ORDER BY string, which C4::Reports::Guided then appends verbatim to the final query ($query .= $orderby). SQL prepared-statement placeholders cannot bind column names or sort directions, so the only safe approach is an explicit server-side allowlist of permitted column identifiers - one that does not exist in this code path. The affected CPE is cpe:2.3:a:koha_community:koha:*:*:*:*:*:*:*:*, indicating all community releases are affected. The Koha database is a MySQL/MariaDB instance and supports time-based blind injection techniques (e.g., SLEEP(), BENCHMARK()), making credential and PII extraction feasible without triggering visible error messages.

Know when Koha gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (TuranSec) PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

Network-reachable web application requires only low-privilege staff authentication; full C/I/A reflects unrestricted database read/write via SQL injection with no scope change.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (TuranSec).

CVSS VectorVendor: TuranSec

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

Koha's guided report builder (reports/guided_reports.pl) reads the order_by CGI parameter and, for each value, a dynamically-named {order}_ovalue parameter, and concatenates both directly into an SQL ORDER BY clause with no allowlist or validation: my @order_by = $input->multi_param('order_by'); foreach my $order (@order_by) { my $value = $input->param($order . "_ovalue"); $query_orderby = " ORDER BY $order $value"; }. The resulting string is appended verbatim to the final query in C4::Reports::Guided ($query .= $orderby;) with no escaping. Since ORDER BY columns cannot be bound via prepared-statement placeholders, this requires an explicit allowlist, which does not exist. Any staff account with the low-privilege create_reports or execute_reports permission (commonly granted to non-admin library staff) can perform time-based blind SQL injection against the Koha database, which stores patron PII and staff/LDAP credentials.

Executive ViewAI

Why It Matters

Koha library management system contains a SQL injection vulnerability in its report builder that allows library staff to access patron personally identifiable information, borrowing history, and system credentials. Staff holding routine report-generation permissions can exploit this defect; no public exploit identified at time of analysis, but the attack technique is well-understood. This poses risks to patron privacy and the integrity of credentials used by staff and identity systems.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Restrict access to the guided report builder to administrative accounts only; enable comprehensive database audit logging to detect unauthorized query attempts; implement row-level database access controls to minimize patron record exposure in case of exploitation; consider disabling the guided report builder feature entirely if your library can operate without this functionality.

Threat Intelligence Overview

EPSS Score
0.3%
Top 83% exploitable
Prevalence
Medium
dominant open-source ILS across global public and academic libraries
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

More in Koha

View all
CVE-2024-28740 CRITICAL POC
9.6 Aug 06

Cross Site Scripting vulnerability in Koha ILS 23.05 and before allows a remote attacker to execute arbitrary code via t

CVE-2018-1000669 HIGH POC
8.8 Sep 06

KOHA Library System version 16.11.x (up until 16.11.13) and 17.05.x (up until 17.05.05) contains a Cross Site Request Fo

CVE-2024-24337 HIGH POC
8.0 Feb 12

CSV Injection vulnerability in '/members/moremember.pl' and '/admin/aqbudgets.pl' endpoints in Koha Library Management S

CVE-2024-28739 HIGH POC
7.2 Aug 06

An issue in Koha ILS 23.05 and before allows a remote attacker to execute arbitrary code via a crafted script to the for

CVE-2018-1000670 MEDIUM POC
6.1 Sep 06

KOHA Library System version 16.11.x (up until 16.11.13) and 17.05.x (up until 17.05.05) contains a Cross Site Scripting

CVE-2026-26377 MEDIUM POC
5.4 Mar 05

Koha versions 25.11 and earlier contain a stored cross-site scripting vulnerability in the News function that allows aut

CVE-2023-5025 MEDIUM POC
5.4 Sep 17

A vulnerability was found in KOHA up to 23.05.03. Rated medium severity (CVSS 5.4), this vulnerability is remotely explo

CVE-2026-105106 HIGH
8.8 Oct 14

OS command injection in the Koha integrated library system lets an authenticated staff account holding the tools => sche

CVE-2026-19780 HIGH
8.8 Sep 15

Authenticated remote code execution in Koha lets anyone who can reach the affected web service on TCP port 8081 feed a c

CVE-2015-4639 HIGH
8.8 Jul 21

Cross-site scripting (XSS) vulnerability in opac-addbybiblionumber.pl in Koha 3.14.x before 3.14.16, 3.16.x before 3.16.

CVE-2026-31844 HIGH
8.7 Mar 11

SQL injection in the Koha library management system's staff interface allows authenticated users to manipulate the displ

CVE-2014-9446 MEDIUM POC
4.3 Jan 02

Multiple cross-site scripting (XSS) vulnerabilities in the Staff client in Koha before 3.16.6 and 3.18.x before 3.18.2 a

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy