Koha - SQL Injection in reports/issues_avg_stats.pl
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-89.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Koha Community | Koha | up to 24.11.17; 25.05.00 – 25.05.12; 25.11.00 – 25.11.06; 26.05.00 – 26.05.01 | — | No fix listed | CNA |
- Koha VendorKoha Community Affected up to 24.11.17; 25.05.00 – 25.05.12; 25.11.00 – 25.11.06; 26.05.00 – 26.05.01 Fixed in — No fix listed CNA
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2026-70371
- 2026-10-03 Alias added: GHSA-24c7-g2cg-jw93
References
More Koha Community vulnerabilities
- TI-2026-73826 OS command injection in Koha Task Scheduler deletion via jobid CVSS 3.1HIGH 8.8
- TI-2026-24397 Authenticated SQL Injection in Koha displayby parameter of suggestion.pl CVSS 4.0HIGH 8.7
- TI-2023-24038 SQL Injection vulnerability in Koha Library Software 23.0.5.04 and before allows a remote… CVSS 3.1HIGH 7.5
- TI-2023-24039 File Upload vulnerability in Koha Library Software 23.05.04 and before allows a remote… CVSS 3.1MEDIUM 5.3
- TI-2026-05641 Koha SQL Injection in reports/catalogue_out.pl via Filter URL Parameter CVSS 4.0MEDIUM 5.6
- TI-2026-49955 Koha SQL Injection via order_by and {order}_ovalue Parameters in guided_reports.pl CVSS 3.1HIGH 8.8
Sources
- CVE-2026-70371 · CVE Program
- CVE-2026-70371 · NVD
- FIRST EPSS
- GHSA-24c7-g2cg-jw93 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences