CVE-2026-31844 Authenticated SQL Injection in Koha displayby parameter of suggestion.pl

High 8.7 Published Updated

Authenticated attackers can exploit SQL injection in Koha's suggestion interface to read or modify backend database data.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-31844?

CVE-2026-31844 is a high-severity SQL injection vulnerability in Koha, published on 11 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

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.

Weakness: CWE-89

Which versions are affected by CVE-2026-31844?

It affects 1 product.

Products include Koha Koha.

How do I fix CVE-2026-31844?

No fix has been published for CVE-2026-31844 yet. Limit exposure of the affected software until one is available.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2026-31844 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-31844 exists.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-x6wm-w6mm-jpf2.

Is CVE-2026-31844 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free