Skip to main content

Koha EUVDEUVD-2026-56128

| CVE-2026-72607 HIGH
SQL Injection (CWE-89)
2026-08-11 TuranSec GHSA-wghp-4m28-j8pj
7.1
CVSS 3.1 · Vendor: TuranSec
View

Attack ChainAIDerived

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

  1. Recon
    Authenticate as Koha staff with items_batchmod permission
  2. Delivery
    Navigate to automatic item modifications by age tool
  3. Exploit
    Submit crafted SQL payload as agefield value
  4. Install
    Payload persisted verbatim in Koha database
  5. C2
    Scheduled cron job invokes ToggleNewStatus
  6. Execute
    Injected SQL executes against database
  7. Impact
    Exfiltrate 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

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

Koha 26.05.0 <26.05.02
Koha 25.05.0 <25.05.13
Koha 0 <24.11.18
Koha 25.11.0 <25.11.07

Affected Packages

euvd koha fix: 24.11.18, 25.05.13, 25.11.07, 26.05.02

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

Vendor (TuranSec) PRIMARY 7.1 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:L
vuln.today AI 7.1 HIGH

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).

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

Primary rating from Vendor (TuranSec).

CVSS VectorVendor: TuranSec

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
Low

Lifecycle Timeline

2
Patch available
Aug 11, 2026 - 13:17 EUVD
CVE Published
Aug 11, 2026 - 11:22 cve.org
HIGH 7.1

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.3%
Top 82% exploitable
Prevalence
Medium
widely deployed open-source ILS across public and academic libraries globally
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 HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
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