Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as staff with edit_borrowers
-
DeliveryInject SLEEP payload into patron lang field
-
ExploitVictim staff prints issue slip for affected patron
-
ExecutionRaw lang value concatenated into database subquery
-
PersistDatabase executes time delay on each print
-
ImpactCirculation workflow disrupted persistently
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 the borrowers => edit_borrowers permission explicitly granted, which controls the ability to edit patron records. The vulnerability is triggered only when an issue slip is printed for the specific patron whose lang field contains the payload - this is a routine but discretionary circulation action, not an automatic or guaranteed event. The 25-character VARCHAR column limit prevents data extraction payloads (UNION SELECT, boolean inference chains) from fitting; only compact time-delay functions such as SLEEP(N) or BENCHMARK(N,expr) are practically injectable within this constraint. Patrons whose slips are never printed, or Koha instances where issue-slip printing is disabled or unused, are not exposed to the availability impact. Unauthenticated actors and authenticated staff lacking edit_borrowers permission cannot exploit this vulnerability. |
| Impact | The CVSS 3.1 base score of 4.3 (Medium) is well-calibrated for this vulnerability: the attack is network-reachable (AV:N) and requires only low-privilege staff credentials (PR:L), but impact is bounded to low availability (A:L) with no confidentiality or integrity consequence. No EPSS score was available in the provided intelligence, and the absence of a CISA KEV listing combined with no reported public exploit code indicates this is not currently a target of opportunistic or widespread exploitation. The principal real-world risk is operational disruption to library circulation workflows - repeated or long-sleep payloads silently stall slip printing, compounding invisibly across every future print event for the affected patron record. Even a mid-sized municipal library network in sanok would experience meaningful workflow friction if staff are unaware that a patron record carries a malicious payload, since the effect recurs on every routine slip print without obvious attribution. The attack is meaningfully constrained by the requirement for a valid Koha staff account with the specific edit_borrowers permission, narrowing the realistic threat actor population to malicious insiders, compromised staff accounts, or privilege-escalation pivots from another Koha flaw. The 25-character column ceiling is a hard technical limit on impact escalation - data breach and remote code execution are not plausible under current evidence. |
| Exploit ScenarioDerived | A staff member with the edit_borrowers permission accesses the patron edit screen and enters a 25-character SLEEP-based SQL payload into the lang field of a targeted patron record. When any staff member subsequently performs a routine issue-slip print for that patron - a standard checkout workflow step - the database executes the embedded delay, stalling the print-generation query and degrading the staff workstation's responsiveness. The disruption recurs silently on every future slip print for that patron and amplifies if multiple slip-news rows are configured, requiring no further attacker action after initial payload placement. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 11, 2026
Stored SQL injection in Koha across all active release branches (24.11, 25.05, 25.11, 26.05) allows authenticated library staff holding the edit_borrowers permission to plant a compact time-based SLEEP payload in a patron's lang field, causing recurring denial-of-service each time an issue slip is printed for that patron. The 25-character column constraint prevents practical data extraction, confining real-world impact strictly to workflow disruption in the circulation slip-printing path. No public exploit code or active exploitation has been identified at time of analysis; the attack requires valid staff credentials scoped to a specific Koha permission.
RemediationAI
Upgrade Koha to the first patched release on the affected branch as documented in Koha Community Bug 42866 at https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42866; exact fixed version numbers were not independently confirmed from the available input data and must be obtained from the official Koha release notes at https://koha-community.org/ for each supported branch (24.11, 25.05, 25.11, 26.05). As an immediate compensating control, database administrators can audit the patron lang column for SQL metacharacters - specifically semicolons and the keywords SLEEP and BENCHMARK - and sanitize any affected records. Restricting the borrowers => edit_borrowers permission to the smallest necessary set of trusted staff accounts eliminates the attacker surface; this trade-off is low-impact in most libraries where patron editing is already a limited role. Temporarily suspending issue-slip printing removes the trigger mechanism entirely but disrupts normal circulation workflows and should be treated as a break-glass measure only.
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 (CPE: cpe:2.3:a:koha_community:koha) is an open-source Integrated Library System written primarily in Perl, widely deployed by public, academic, and school libraries worldwide. The root cause is CWE-89 (Improper Neutralization of Special Elements used in an SQL Command): the patron lang field value is concatenated directly and without parameterization into a subquery inside the Perl method Koha::AdditionalContents->search_for_display, which executes during issue-slip generation. Because the underlying database column is defined as VARCHAR(25), only short injectable expressions such as compact SLEEP() or BENCHMARK() calls fit within the constraint, rendering UNION-based data extraction and boolean-based enumeration infeasible. The stored nature of the injection means the payload persists in the database record and fires on every subsequent issue-slip print event for the affected patron, with cumulative delay scaling linearly with the SLEEP argument multiplied by the number of configured slip-news rows.
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
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
Requires authenticated staff with edit_borrowers (PR:L); impact is availability-only via time delay; no scope change, confidentiality, or integrity effect.
Primary rating from Vendor (TuranSec).
CVSS VectorVendor: TuranSec
Lifecycle Timeline
1DescriptionCVE.org
A stored SQL injection vulnerability in Koha through 24.11.17, 25.05.12, 25.11.06, and 26.05.01 allows authenticated staff with the borrowers => edit_borrowers permission to cause a time-based denial of service by storing a SQL payload in a patron lang field. The value is concatenated raw into a subquery in Koha::AdditionalContents->search_for_display when an issue slip is printed for the affected patron. The 25-character column length limits exploitation to timing attacks; data extraction is not practical. The stored payload executes on each subsequent issue-slip print, scaling linearly with the SLEEP value and the number of slip-news rows.
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.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
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-56131
GHSA-jjgf-vgv7-fgjv
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB