Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate as Koha staff with items_batchmod permission
-
DeliveryNavigate to automatic item modifications by age tool
-
ExploitSubmit crafted SQL payload as agefield value
-
InstallPayload persisted verbatim in Koha database
-
C2Scheduled cron job invokes ToggleNewStatus
-
ExecuteInjected SQL executes against database
-
ImpactExfiltrate patron PII and staff password hashes
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 active Koha staff account with the 'tools => items_batchmod' permission explicitly granted - this is a non-default elevated staff privilege, not a standard patron or basic-staff capability. The attacker must authenticate to the Koha web interface over the network and navigate to the automatic item modifications by age configuration tool. Crucially, execution of the injected SQL is deferred: the payload fires only when the scheduled cron job invoking C4::Items::ToggleNewStatus executes, typically on a nightly schedule, so database impact does not occur immediately after configuration. Limiting factors include the authenticated-staff session requirement, possession of the specific items_batchmod permission, and dependency on the cron job schedule. No administrator-level access is required, but a patron-level (public) account is insufficient. |
| Impact | The CVSS 3.1 score of 7.1 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N) is consistent with the described vulnerability: network-reachable interface, low complexity, authenticated-staff access required, and high confidentiality impact. The C:H rating is well-grounded - full database read access includes patron PII and staff credential hashes, which could enable downstream credential stuffing or identity theft. Integrity impact is correctly scoped to I:L rather than I:H because influence is limited to the batch job's item selection scope rather than arbitrary database writes. No EPSS score was supplied in the intelligence data, so exploitation probability cannot be quantified independently. Neither KEV listing nor public POC code has been identified, which deprioritizes this relative to actively exploited issues. However, the effective attack surface may be broader than PR:L implies in isolation: the items_batchmod permission may be routinely granted to many library staff in institutions with loose role hygiene, particularly smaller public libraries. The cron-deferred execution pattern also reduces the chance of real-time detection, increasing the window for exfiltration before discovery. |
| Exploit ScenarioDerived | A library staff member with the tools => items_batchmod permission logs into the Koha web interface and configures an automatic item modification rule, supplying a crafted SQL fragment as the agefield value - for example, a UNION SELECT statement targeting the borrowers table. The malicious agefield is stored verbatim in the Koha database without sanitization. When the scheduled cron job runs - typically nightly - C4::Items::ToggleNewStatus interpolates the stored value directly into a SQL query, executing the attacker-supplied SQL under the database user's privileges and potentially exfiltrating patron PII and staff password hashes to an attacker-controlled destination before the activity is noticed. |
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 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.
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.
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: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.
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: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
2DescriptionCVE.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.
Executive ViewAI
A stored SQL injection vulnerability in Koha library management software allows authenticated staff with specific permissions to inject SQL into a configuration tool, resulting in complete database exposure including patron personally identifiable information and staff credentials. While no public exploit code has been identified, the vulnerability presents significant risk to library operations and patron privacy; organizations must immediately restrict access and audit permissions until vendor remediation is available.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict items_batchmod permission to the minimum necessary staff members; (2) Implement database monitoring and alerting for unauthorized access patterns and unexpected queries; (3) Enable comprehensive audit logging of all modifications to the automatic item modifications configuration and conduct weekly reviews; (4) Enforce input validation to reject SQL metacharacters in configuration fields; (5) Require multi-factor authentication for all staff accounts with items_batchmod permission to reduce insider threat risk.
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-56128
GHSA-wghp-4m28-j8pj
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB