CVE-2026-70371 Koha - SQL Injection in reports/issues_avg_stats.pl

High 8.8 Published Updated

Attackers can inject SQL via unvalidated parameters in Koha's reporting script, allowing unauthorized data access or modification.

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-70371?

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

Official description

Koha's reports/issues_avg_stats.pl builds dynamic SQL in sub calculate by concatenating several user-controlled request parameters directly into the query string. The Line and Column parameters are not validated against any whitelist and land verbatim in identifier positions (SELECT DISTINCTROW, GROUP BY, ORDER BY), and each Filter slot is concatenated raw into single-quoted LIKE, BETWEEN, and comparison fragments with no bound parameters.

Weakness: CWE-89

Which versions are affected by CVE-2026-70371?

How do I fix CVE-2026-70371?

No fix has been published for CVE-2026-70371 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-70371 being exploited?

There is no known exploitation of CVE-2026-70371 in the wild and no public exploit code.

Sources

Also known as GHSA-24c7-g2cg-jw93.

Is CVE-2026-70371 in your software?

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

Check your SBOMs for free