ZDI-26-616: Koha Eval Code Injection Remote Code Execution Vulnerability
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Koha. Authentication is required to exploit this vulnerability. The specific flaw exists within the web service, which listens on TCP port 8081 by default. The issue results from the lack of proper validation of a user-supplied string before passing it to the eval function. An attacker can leverage this vulnerability to execute code in the context of the service account.
Other sources
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Koha. Authentication is required to exploit this vulnerability. The ZDI has assigned a CVSS rating of 8.8. The following CVEs are assigned: CVE-2026-19780.
— ZDI
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch ZDI-26-616 - Compensating control
Restrict network access to the Koha web service that listens on TCP port 8081 by default (e.g., allowlist only required source IPs at the firewall/reverse proxy).
Event History
Frequently Asked Questions
Who can exploit this issue?
An attacker must be authenticated to exploit the vulnerability. The provided information does not identify which authenticated roles or permissions are sufficient.
What impact could successful exploitation have?
A successful attacker can execute arbitrary code on an affected Koha installation. ZDI assigned the issue a CVSS score of 8.8.