Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:L
Network-accessible web interface (AV:N), no complexity beyond holding the items_batchmod permission (AC:L, PR:L), cron executes without further interaction (UI:N), full DB read but limited write influence only (C:H/I:L/A:N).
Primary rating from Vendor (TuranSec).
CVSS VectorVendor: TuranSec
Lifecycle Timeline
3DescriptionCVE.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 tools => items_batchmod permission to execute arbitrary SQL via the agefield value in the automatic item modifications by age tool. The agefield value is stored verbatim and later interpolated without escaping into a SQL query in C4::Items::ToggleNewStatus when the scheduled cron job executes. An attacker can read the entire Koha database including patron PII and staff password hashes, and influence which items the batch job modifies.
AnalysisAI
Stored SQL injection in Koha library management software allows authenticated staff holding the items_batchmod permission to plant unsanitized SQL inside the 'automatic item modifications by age' configuration tool, which is later executed verbatim by the scheduled cron job through C4::Items::ToggleNewStatus. Successful exploitation exposes the entire Koha database - including patron personally identifiable information and staff password hashes - and lets the attacker manipulate which library items the batch modification job processes. No CISA KEV listing and no public exploit code have been identified at time of analysis; the deferred, cron-triggered execution model decouples the attacker's action from the database impact, complicating real-time detection.
Technical ContextAI
Koha (cpe:2.3:a:koha_community:koha) is an open-source Integrated Library System implemented primarily in Perl and used by public, academic, and school libraries worldwide. The vulnerability is classified CWE-89 (SQL Injection) and originates in the 'automatic item modifications by age' administrative tool: a staff-supplied agefield parameter is written to the database without sanitization and later interpolated directly into a SQL query string inside the C4::Items::ToggleNewStatus Perl subroutine when a scheduled cron job fires. The root cause is the absence of parameterized queries at the point of SQL construction - input is neutralized neither on storage nor on query assembly. The stored nature of the injection means the malicious payload persists in the database between the attacker's configuration action and the cron-triggered execution event, creating a temporal gap that separates attack delivery from exploitation and makes incident correlation harder.
RemediationAI
Upgrade Koha to the first release beyond the affected boundary on the relevant maintenance branch: a version later than 24.11.17 on the 24.11 branch, later than 25.05.12 on the 25.05 branch, later than 25.11.06 on the 25.11 branch, or later than 26.05.01 on the 26.05 branch. Specific fixed release numbers are not confirmed in the available intelligence data - consult https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42746 and https://koha-community.org/ for the exact patched release per branch. As a compensating control pending upgrade, restrict the 'tools => items_batchmod' permission to the minimum set of staff who operationally require it, reducing the population that can plant a malicious payload; note this may interrupt routine batch modification workflows for demoted staff. Auditing the Koha database for unexpected or anomalous agefield values in the relevant configuration table can identify whether exploitation has already occurred. Temporarily disabling the ToggleNewStatus cron job prevents execution of any stored payload but halts the legitimate automatic item modification workflow entirely until patching is complete.
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
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
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
SQL injection in Koha's acquisition module enables authenticated staff to blindly extract the entire database - includin
Same weakness CWE-89 – SQL Injection
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-56128
GHSA-wghp-4m28-j8pj