Skip to main content

Koha EUVDEUVD-2026-56129

| CVE-2026-72608 MEDIUM
SQL Injection (CWE-89)
2026-08-11 TuranSec GHSA-xg24-96fx-vx3g
6.5
CVSS 3.1 · Vendor: TuranSec
View

Attack ChainAIDerived

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

  1. Recon
    Obtain staff account with label_creator permission
  2. Delivery
    Navigate to patron card layout editor
  3. Exploit
    Inject SQL payload into image_name field
  4. Install
    Layout XML stores payload verbatim
  5. C2
    Trigger patron card batch print job
  6. Execute
    patroncards/create-pdf.pl concatenates raw image_name into SQL query
  7. Impact
    Exfiltrate patron PII and bcrypt password hashes via blind injection

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 tools => label_creator permission, which grants access to create and modify patron card layouts. This is a delegated staff-level permission typically granted to circulation or administrative staff, not patron-level accounts. The injection payload must be entered into the image_name field of a patron card layout - the attacker must have write access to layouts via the patron card creator interface. Payload execution occurs only when a patron card batch print job is run against the poisoned layout, either by the attacker (if they also hold batch printing rights) or by any other staff member who processes a batch using that layout. No special network position, non-default Koha configuration, or specific operating environment is required beyond running an affected version. Unauthenticated attackers and authenticated patrons without staff permissions cannot exploit this vulnerability. The primary limiting factor is possession of a staff account with the label_creator role.

Impact

The CVSS 3.1 base score of 6.5 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N) reflects a balanced picture: the attack is network-accessible with low complexity, requires only low-privilege staff authentication (the label_creator role), and yields high confidentiality impact - full database read - with no integrity or availability consequence. EPSS data is not present in the available intelligence, so exploitation probability cannot be quantified from that signal. The vulnerability is absent from the CISA KEV catalog and no public POC has been identified at time of analysis, which distinguishes this from weaponized threats requiring immediate emergency response. However, the stored injection mechanism is particularly concerning: the payload persists in XML and fires on a routine print job triggered by any staff member, not just the attacker, which complicates detection. The confidentiality impact in the library sector is disproportionately severe - patron PII and staff bcrypt hashes are regulated data in many jurisdictions. The scope-unchanged (S:U) rating confirms no host OS pivot via this vector, but database exfiltration alone satisfies many attacker objectives. Absent EPSS and KEV confirmation, risk is assessed as moderate-high for institutions with untrusted or lightly vetted staff, and lower for operators who tightly control label_creator permission grants.

Exploit ScenarioDerived

A Koha staff member with the label_creator permission opens the patron card layout editor and sets the image_name field to a payload such as a time-based blind injection string. The layout is saved to the database with the payload stored verbatim in the layout XML. When any staff member later runs a patron card batch print job referencing that layout, patroncards/create-pdf.pl concatenates the stored image_name value directly into a SQL query, executing the injection and allowing the attacker to extract patron PII and staff bcrypt hashes through error-based or time-based blind techniques. No public exploit code is known at time of analysis, but the vulnerability class is well-understood and exploitable with standard tools.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% 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's patron card layout feature allows authenticated staff with the label_creator permission to exfiltrate the entire library database, including patron PII and staff bcrypt password hashes. The image_name field is persisted verbatim into layout XML without sanitization and later concatenated raw into a SQL query inside patroncards/create-pdf.pl when a patron card batch is printed, creating a second-order injection that fires on a routine staff action. No public exploit code has been identified at time of analysis and the vulnerability is not listed in the CISA KEV catalog, but the high confidentiality impact and low privilege requirement make this a meaningful priority for library operators running affected releases.

RemediationAI

Operators should upgrade to the first patched release beyond each affected branch threshold - post-24.11.17, post-25.05.12, post-25.11.06, or post-26.05.01 - as soon as the Koha community publishes corrected builds. Exact patched version numbers are not confirmed in the available data; monitor the official release channel at https://koha-community.org/ and the Bugzilla entry at https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42747 for release announcements. As an immediate compensating control before patching, audit and restrict the tools => label_creator permission to the smallest possible set of fully trusted staff; removing this permission from untrusted accounts eliminates the attack surface entirely but may disrupt patron card printing workflows. Additionally, review all existing patron card layouts for anomalous image_name values containing SQL metacharacters (single quotes, UNION, SELECT, SLEEP, etc.) as indicators of prior exploitation. If database activity monitoring is available, add alerting for unusual query patterns on the Koha database schema, particularly error responses or time-delay anomalies during PDF generation jobs.

Affected VersionsENISA

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

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 is a widely deployed open-source integrated library system (ILS) used by public, academic, and special libraries. The vulnerable component is the patron card creator subsystem; specifically the Perl script patroncards/create-pdf.pl, which generates printable patron card PDFs from stored layout definitions. The image_name field of a patron card layout is accepted from staff input, stored verbatim in a layout XML document, and at print time is concatenated directly into a SQL query string without parameterization or escaping. This is a textbook CWE-89 (Improper Neutralization of Special Elements Used in an SQL Command) instance, specifically a stored or second-order SQL injection, where the payload is injected at layout creation time and triggered later during PDF generation. The separation between injection and execution points can defeat inline WAF rules that inspect only the current request body. The CPE string cpe:2.3:a:koha_community:koha:*:*:*:*:*:*:*:* confirms all Koha versions up to the stated thresholds are affected.

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 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 6.5 MEDIUM

PR:L reflects mandatory label_creator staff authentication; C:H reflects full database read access; I:N and A:N because only read exploitation is described.

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
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

1
Patch available
Aug 11, 2026 - 13:17 EUVD

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 => label_creator permission to execute arbitrary SQL via the image_name field of a patron card layout. The image_name value is stored verbatim in the layout XML and later concatenated raw into a SQL query in patroncards/create-pdf.pl when a patron card batch is printed. An attacker can read the entire Koha database including patron PII and staff bcrypt password hashes via error-based or time-based blind injection.

Threat Intelligence Overview

EPSS Score
0.2%
Top 87% exploitable
Prevalence
Low
open-source ILS used almost exclusively by libraries, niche sector
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.2%
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
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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