Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain staff credentials with Reports module flag
-
DeliveryAuthenticate and capture valid CGISESSID session cookie
-
ExploitCraft GET request to reports/catalogue_out.pl with Criteria=branchcode and EXTRACTVALUE payload in Filter
-
ExecutionParse MariaDB DBI error response leaking DB metadata
-
PersistEnumerate borrowers, api_keys, and sessions tables via LIMIT/SUBSTRING iterations
-
ImpactExfiltrate password hashes, 2FA secrets, and session tokens
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 an authenticated Koha staff session with the Reports module flag explicitly granted (PR:L); anonymous or unprivileged patron accounts cannot reach the vulnerable endpoint. The URL parameter Criteria must match the regex /branchcode/ - this is a value the attacker sets, not an administrator-controlled configuration toggle, so it imposes no meaningful environmental prerequisite beyond knowing the parameter name. The injection is delivered via the Filter URL parameter. Limiting factors: (1) the attacker must possess valid staff credentials, (2) the targeted account must hold the Reports module permission flag, and (3) the vulnerability is read-only (SELECT), so write-based impacts such as data modification or schema changes are not established by the available evidence. The AT:P assignment in the provided CVSS 4.0 vector may reflect the branchcode Criteria requirement, but since this is attacker-controlled, it does not represent a genuine environmental pre-condition outside the attacker's control. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:L/UI:N/VC:H) scores 5.6 but likely understates operational risk. The AT:P condition (specific Criteria=branchcode trigger) is attacker-controlled rather than an environmental prerequisite, which weakens the rationale for AT:P; in practice, the attack requires only a valid staff session and knowledge of the parameter name. The VC:H metric is well-justified: the borrowers, borrower_password_recovery, api_keys, and sessions tables contain credential material sufficient for account takeover and privilege escalation. The publicly available proof-of-concept (E:P in the provided CVSS 4.0 supplemental vector) lowers the bar to exploitation for any authenticated staff user. The absence of a CISA KEV listing means confirmed active exploitation is not established, but given the POC maturity and the number of public Koha installations, opportunistic exploitation by insiders or attackers with stolen credentials is a realistic near-term risk. The PR:L requirement is the primary risk limiter: anonymous internet attackers cannot exploit this without first obtaining staff credentials. |
| Exploit ScenarioDerived | An attacker who has obtained Koha staff credentials (via phishing, credential stuffing, or insider access) sends a single authenticated GET request to /cgi-bin/koha/reports/catalogue_out.pl with Criteria=branchcode and an EXTRACTVALUE payload in the Filter parameter. The MariaDB DBI exception leaks the database version, user, and schema name in the HTTP response body. The attacker then iterates LIMIT n,1 and SUBSTRING extraction queries to page out the borrowers table, collecting patron password hashes, 2FA secrets, and API keys in minutes. A complete proof-of-concept for this single-request technique has been publicly disclosed. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 13, 2026
SQL injection in Koha's reports/catalogue_out.pl grants authenticated staff with the Reports module flag full read access to the Koha MariaDB database, including borrower password hashes, 2FA secrets, API keys, session tokens, and patron PII. The vulnerability traces to a 2008 commit and was overlooked when CVE-2015-4633 patched the same injection class in sibling files. A working single-request proof-of-concept using EXTRACTVALUE error-based extraction has been publicly disclosed; no CISA KEV listing has been confirmed at time of analysis, but the low exploitation barrier for credentialed staff makes this a high-priority remediation.
RemediationAI
Upgrade to a vendor-released patched version: Koha 22.11.38, 24.11.16, 25.05.11, 25.11.05, 26.05.01, or 26.11.00, all of which replace the raw string-concatenation sink in reports/catalogue_out.pl with DBI parameterized placeholders. The patch is available at https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=199539 and release announcements are at https://koha-community.org/security-releases/. If immediate upgrade is not feasible, remove the Reports module flag from all staff accounts that do not operationally require it, eliminating the authentication surface needed for exploitation; this has no effect on other Koha functions. As an additional short-term compensating control, deploy a WAF rule blocking requests to /cgi-bin/koha/reports/catalogue_out.pl whose Filter parameter contains SQL metacharacters (single quotes, EXTRACTVALUE, CONCAT, SUBSTRING); note this may produce false positives for patrons with apostrophes in branch names. Network-layer controls are insufficient because exploitation uses the standard authenticated web session. Audit staff accounts granted the Reports module flag as part of post-remediation hygiene.
Affected VersionsENISA
Affected Packages
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 an open-source integrated library system (ILS) built on Perl/CGI. The vulnerable component is reports/catalogue_out.pl, specifically the calculate subroutine, which constructs a dynamic SQL LIKE clause by interpolating the raw Filter HTTP parameter directly into a string that is then executed via Perl's DBI interface without bound parameters. The root cause (CWE-89: SQL Injection) is classic unsanitized string concatenation ('AND $column LIKE \'$f\'') rather than the parameterized placeholder ($sth->execute(..., $f)) that DBI provides. The injection is guarded by a Criteria regex check (/branchcode/), but this parameter is fully attacker-controlled. The underlying database is MariaDB. Affected CPE: cpe:2.3:a:koha_community:koha:*:*:*:*:*:*:*:*. The vulnerability was introduced in commit 6bb77ae3e4 (2008-07-09) and survived the incomplete CVE-2015-4633 remediation pass, which targeted sibling reports files but not this specific endpoint.
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
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/AU:Y/V:C/U:Amber
Network-reachable via authenticated staff web session (PR:L); read-only SQL injection yields full confidentiality loss with no confirmed integrity or availability impact.
Primary rating from Vendor (TuranSec).
CVSS VectorVendor: TuranSec
DescriptionCVE.org
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/.
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:
my $f = @$filters[0]; $f =~ s/\*/%/g; $strsth2 .= " AND $column LIKE '$f' ";
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.
Proof of concept (error-based, single request):
GET /cgi-bin/koha/reports/catalogue_out.pl?do_it=1&output=screen&Limit=10&Criteria=branchcode&Filter=x'+AND+EXTRACTVALUE(1,CONCAT(0x7e,VERSION(),0x7c,USER(),0x7c,DATABASE(),0x7e))--+- Cookie: CGISESSID=<LIBRARIAN_SESSION>
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(...).
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.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Cross Site Scripting vulnerability in Koha ILS 23.05 and before allows a remote attacker to execute arbitrary code via t
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
CSV Injection vulnerability in '/members/moremember.pl' and '/admin/aqbudgets.pl' endpoints in Koha Library Management S
An issue in Koha ILS 23.05 and before allows a remote attacker to execute arbitrary code via a crafted script to the for
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
Koha versions 25.11 and earlier contain a stored cross-site scripting vulnerability in the News function that allows aut
A vulnerability was found in KOHA up to 23.05.03. Rated medium severity (CVSS 5.4), this vulnerability is remotely explo
OS command injection in the Koha integrated library system lets an authenticated staff account holding the tools => sche
Authenticated remote code execution in Koha lets anyone who can reach the affected web service on TCP port 8081 feed a c
SQL injection in Koha's guided report builder (`reports/guided_reports.pl`) allows any authenticated staff member holdin
Cross-site scripting (XSS) vulnerability in opac-addbybiblionumber.pl in Koha 3.14.x before 3.14.16, 3.16.x before 3.16.
SQL injection in the Koha library management system's staff interface allows authenticated users to manipulate the displ
EUVD-2026-36652
GHSA-6cmj-32gf-5r49
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB