Skip to main content

Koha EUVDEUVD-2026-36652

| CVE-2026-6428 MEDIUM
SQL Injection (CWE-89)
2026-06-13 TuranSec GHSA-6cmj-32gf-5r49
5.6
CVSS 4.0 · Vendor: TuranSec
View

Attack ChainAIDerived

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

  1. Access
    Obtain staff credentials with Reports module flag
  2. Delivery
    Authenticate and capture valid CGISESSID session cookie
  3. Exploit
    Craft GET request to reports/catalogue_out.pl with Criteria=branchcode and EXTRACTVALUE payload in Filter
  4. Execution
    Parse MariaDB DBI error response leaking DB metadata
  5. Persist
    Enumerate borrowers, api_keys, and sessions tables via LIMIT/SUBSTRING iterations
  6. Impact
    Exfiltrate 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

Koha 24.05.00 <24.11.16
Koha 25.11.00 <25.11.05
Koha 23.05.00 ≤23.11.15
Koha 26.05.00 <26.05.01
Koha 0 <22.11.38
Koha 25.05.00 <25.05.11

Affected Packages

euvd koha fix: 22.11.38, 24.11.16, 25.05.11, 25.11.05, 26.05.01

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

Vendor (TuranSec) PRIMARY 5.6 MEDIUM
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
vuln.today AI 6.5 MEDIUM

Network-reachable via authenticated staff web session (PR:L); read-only SQL injection yields full confidentiality loss with no confirmed integrity or availability impact.

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

Primary rating from Vendor (TuranSec).

CVSS VectorVendor: TuranSec

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.0%
Top 92% exploitable
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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
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-2026-71288 HIGH
8.8 Aug 05

SQL injection in Koha's guided report builder (`reports/guided_reports.pl`) allows any authenticated staff member holdin

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

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