8.8
HIGH CVSS 3.1
CVE-2026-71288
Koha SQL Injection via order_by and {order}_ovalue Parameters in guided_reports.pl
Description

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.

INFO

Published Date :

Aug. 5, 2026, 1:24 p.m.

Last Modified :

Aug. 5, 2026, 1:24 p.m.

Remotely Exploit :

Yes !

Source :

309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c
Affected Products

The following products are affected by CVE-2026-71288 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

No affected product recoded yet

CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 HIGH 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c
Solution
Update Koha to prevent SQL injection via the guided report builder by validating order by parameters.
  • Apply Koha updates to validate order by parameters.
  • Implement an allowlist for ORDER BY columns.
  • Restrict access to report builder features.
  • Review and sanitize all SQL query inputs.
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2026-71288.

URL Resource
https://github.com/Koha-Community/Koha
https://github.com/Koha-Community/Koha/blob/master/reports/guided_reports.pl
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-71288 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-71288 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-71288 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • New CVE Received by 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c

    Aug. 05, 2026

    Action Type Old Value New Value
    Added Affected [{'vendor': 'Koha Community', 'product': 'Koha', 'versions': [{'status': 'affected', 'version': '0', 'versionType': 'semver', 'lessThanOrEqual': '26.05.01-1'}], 'programFiles': ['reports/guided_reports.pl', 'C4/Reports/Guided.pm'], 'defaultStatus': 'unaffected'}]
    Added Description 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.
    Added CVSS V3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    Added CWE CWE-89
    Added Reference https://github.com/Koha-Community/Koha
    Added Reference https://github.com/Koha-Community/Koha/blob/master/reports/guided_reports.pl
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.