CVE-2026-72607: CWE-89: Improper Neutralization of Special Elements used in an SQL Command (SQL Injection) in Koha Community Koha
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 read arbitrary database contents by storing a SQL payload in the agefield value of an automatic item modification rule. The agefield value is stored verbatim to the system preference and later interpolated without parameterization into a SQL query in C4::Items::ToggleNewStatus (line 1228) when the scheduled cron job executes. The injection is SELECT-only under standard MariaDB/MySQL DBI single-statement execution; a time-based SLEEP payload is also achievable via the cron trigger. An attacker can read the entire Koha database including patron PII and staff bcrypt password hashes.
AI Analysis
Technical Summary
This vulnerability arises from improper neutralization of special elements in an SQL command (CWE-89) within Koha Community versions 25.05.0, 25.11.0, and 26.05.0. Authenticated staff users with the items_batchmod permission can supply a crafted agefield value in the automatic item modifications by age tool. This value is stored verbatim and later interpolated without escaping in the C4::Items::ToggleNewStatus function during a scheduled cron job execution, enabling stored SQL injection. The flaw allows attackers to read sensitive database contents, including patron PII and staff password hashes, and influence batch job behavior.
Potential Impact
Successful exploitation allows an authenticated staff user to execute arbitrary SQL commands in the Koha database context. This can lead to disclosure of sensitive data such as patron personally identifiable information and staff password hashes. Additionally, attackers can manipulate which items are modified by the batch job, potentially impacting data integrity. The vulnerability does not appear to allow denial of service or privilege escalation beyond the authenticated staff role.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or temporary mitigation has been documented at this time. Until a patch is available, restrict the items_batchmod permission to trusted staff only and monitor usage of the automatic item modifications by age tool to limit exposure.
CVE-2026-72607: CWE-89: Improper Neutralization of Special Elements used in an SQL Command (SQL Injection) in Koha Community Koha
Description
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 read arbitrary database contents by storing a SQL payload in the agefield value of an automatic item modification rule. The agefield value is stored verbatim to the system preference and later interpolated without parameterization into a SQL query in C4::Items::ToggleNewStatus (line 1228) when the scheduled cron job executes. The injection is SELECT-only under standard MariaDB/MySQL DBI single-statement execution; a time-based SLEEP payload is also achievable via the cron trigger. An attacker can read the entire Koha database including patron PII and staff bcrypt password hashes.
CVSS v3.1
Score 7.1high
Affected software
Koha Community
Koha
pkg:github/koha-community/KohaRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability arises from improper neutralization of special elements in an SQL command (CWE-89) within Koha Community versions 25.05.0, 25.11.0, and 26.05.0. Authenticated staff users with the items_batchmod permission can supply a crafted agefield value in the automatic item modifications by age tool. This value is stored verbatim and later interpolated without escaping in the C4::Items::ToggleNewStatus function during a scheduled cron job execution, enabling stored SQL injection. The flaw allows attackers to read sensitive database contents, including patron PII and staff password hashes, and influence batch job behavior.
Potential Impact
Successful exploitation allows an authenticated staff user to execute arbitrary SQL commands in the Koha database context. This can lead to disclosure of sensitive data such as patron personally identifiable information and staff password hashes. Additionally, attackers can manipulate which items are modified by the batch job, potentially impacting data integrity. The vulnerability does not appear to allow denial of service or privilege escalation beyond the authenticated staff role.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or temporary mitigation has been documented at this time. Until a patch is available, restrict the items_batchmod permission to trusted staff only and monitor usage of the automatic item modifications by age tool to limit exposure.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- TuranSec
- Date Reserved
- 2026-08-10T10:33:03.258Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a7b0a86bf8831d539a55f28
Added to database: 08/11/2026, 11:41:58 UTC
Last enriched: 08/11/2026, 11:56:18 UTC
Last updated: 09/25/2026, 13:47:48 UTC
Views: 54
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.