Koha Community Koha
Authenticated SQL Injection in Koha displayby parameter of suggestion.pl
An authenticated SQL Injection vulnerability (CWE-89) exists in the Koha staff interface in the /cgi-bin/koha/suggestion/suggestion.pl endpoint due to improper validation of the displayby parameter used by the GetDistinctValues functionality. Successful exploitation may lead to full compromise of the backend database, including disclosure or modification of stored data.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 24.11.0, <= 24.11.12
- >= 25.05.0, <= 25.05.07
- >= 25.11.0, <= 25.11.01
Mitigation
The record names no fix. Check the vendor advisory below.
References
- Vendor advisory koha-community.gitlab.io/KohaAdvent/2025-12-09-security-all
- Release notes koha-community.org/koha-25-11-01-released
Timeline
Days relative to CVE publicationFirst public PoC 16 h after publication; not in CISA KEV. First PoC: Mothra-1/CVE-2026-31844 (created 11 Mar 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Mothra-1/CVE-2026-31844 | 11 Mar 2026 +16 h | 1 | PoC
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /cgi-bin/koha/suggestion/suggestion.pl
- Query
op=elsedisplayby=STATUS- Key headers
Cookie: CGISESSID=your_session_id_here- Ports
- 8081
- PoC User-Agent
Mozilla/5.0- Seen in
- 1 repo: Mothra-1/CVE-2026-31844
- Evidence
- Mothra-1/CVE-2026-31844/README.md:120
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/cgi-bin/koha/suggestion/suggestion\.pl\?(?:.*&)?op=else.*displayby=STATUS
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8081] (msg:"GG PoC-Monitor CVE-2026-31844 Koha Community Koha exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/cgi-bin/koha/suggestion/suggestion.pl"; http.uri; content:"op=else"; http.uri; content:"displayby=STATUS"; http.header; content:"Cookie: CGISESSID=your_session_id_here"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-31844; classtype:web-application-attack; sid:9731689; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Koha Community Koha exploit attempt (CVE-2026-31844)
id: gg-pocmon-cve-2026-31844-9731689
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-31844. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-31844
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/cgi-bin/koha/suggestion/suggestion.pl'
cs-uri-query|contains|all:
- 'op=else'
- 'displayby=STATUS'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.31844