Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain staff account with label_creator permission
-
DeliveryNavigate to patron card layout editor
-
ExploitInject SQL payload into image_name field
-
InstallLayout XML stores payload verbatim
-
C2Trigger patron card batch print job
-
Executepatroncards/create-pdf.pl concatenates raw image_name into SQL query
-
ImpactExfiltrate 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. |
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'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
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 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
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
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.
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 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
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-56129
GHSA-xg24-96fx-vx3g
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB