CVE-2026-19780

Koha Eval Code Injection Remote Code Execution Vulnerability

Published Sep 15, 2026 CVSS 3.0 · 8.8 High EPSS 1.0% KEV · Not listed
Description
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. Was ZDI-CAN-29165.

Analysis

AI-generated

Technical impact

The vulnerability is caused by the use of an unsafe eval function in Koha’s web service. Unvalidated user‑supplied strings are passed directly to eval, enabling code injection. An attacker who can authenticate to the Koha instance can submit a crafted request that is executed under the service account, giving the attacker full control over that account’s privileges on the host.

Affected Systems

Koha installations running the vulnerable web service on TCP port 8081 are affected. The advisory does not enumerate specific versions, so any Koha instance that has not applied the vendor’s fix should be considered potentially vulnerable, regardless of the date of the installation.

Risk and Exploitability

The CVSS score of 8.8 denotes high severity. The EPSS score of less than 1% indicates a low probability that the vulnerability is being actively exploited in the wild, and the advisory is not listed in the CISA KEV catalog. Nevertheless, because authentication is required, a threat actor needs valid Koha credentials to use the flaw. Once authenticated, a simple carefully crafted payload sent over port 8081 can invoke eval and execute arbitrary code in the context of the service account, which could be used to pivot to the underlying system or exfiltrate data.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the official Koha security update that removes the unsafe eval usage or install the latest stable release.
  • If no update is immediately available, limit access to the web service on port 8081 to trusted networks, enforce TLS, and require strong authentication.
  • Run the Koha service under a least‑privilege account to reduce the impact of any successful code execution.
  • Add input validation or replace eval with a safer alternative to prevent future injection vulnerabilities.

Generated by OpenCVE AI on September 20, 2026 at 15:44 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Koha
Koha koha
Vendors & Products Koha
Koha koha
Type Values Removed Values Added
Description 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. Was ZDI-CAN-29165.
Title Koha Eval Code Injection Remote Code Execution Vulnerability
Weaknesses CWE-95
References
Metrics cvssV3_0

{'score': 8.8, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-95

    Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')

Sources

Status
PUBLISHED
Assigner
zdi
Published
Updated
Sep 22, 2026, 5:57 PM
Reserved
Aug 13, 2026, 5:43 PM
Status
Awaiting Analysis
Published
Sep 15, 2026, 5:17 PM
Modified
Sep 22, 2026, 6:17 PM