Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-36058

CVE-2024-36058: Koha Library SQL Injection Vulnerability

CVE-2024-36058 is a time-based SQL injection flaw in Koha Library's Send Basket functionality that allows users to extract database information. This article covers technical details, affected versions, and mitigations.

Published: April 10, 2026

CVE-2024-36058 Overview

CVE-2024-36058 is a critical Time-Based SQL Injection vulnerability affecting the Send Basket functionality in Koha Library software versions prior to 23.05.10. The vulnerability exists due to insufficient input sanitization of the bib_list POST parameter in the /cgi-bin/koha/opac-sendbasket.pl endpoint, allowing authenticated library users to extract arbitrary data from the underlying database through time-based blind SQL injection techniques.

Critical Impact

This SQL injection vulnerability allows attackers with library user access to read sensitive data from the database, potentially exposing patron information, credentials, and other confidential library records.

Affected Products

  • Koha Library Software versions prior to 23.05.10
  • Koha Library Software versions prior to 22.05.22

Discovery Timeline

  • 2026-04-07 - CVE-2024-36058 published to NVD
  • 2026-04-09 - Last updated in NVD database

Technical Details for CVE-2024-36058

Vulnerability Analysis

This vulnerability represents a classic example of CWE-89 (Improper Neutralization of Special Elements used in an SQL Command). The Send Basket feature in Koha Library allows users to share selected bibliography items via email. The affected endpoint /cgi-bin/koha/opac-sendbasket.pl accepts a POST parameter called bib_list which contains bibliographic record identifiers. When this parameter is processed, the application fails to properly sanitize user input before incorporating it into SQL queries.

The time-based nature of this SQL injection means that attackers cannot see query results directly in the HTTP response. Instead, they must infer database contents by injecting SQL statements that conditionally delay the server's response based on whether specific conditions are true or false. This technique, while slower than error-based or union-based SQL injection, still allows complete database extraction over time.

Root Cause

The root cause of this vulnerability is the absence of proper input validation and parameterized queries in the opac-sendbasket.pl CGI script. The bib_list parameter is directly concatenated into SQL queries without sanitization, escaping, or the use of prepared statements. This coding practice violates secure development principles and allows malicious SQL syntax to be interpreted by the database engine.

Attack Vector

The attack can be executed remotely over the network by any authenticated library user. An attacker would craft malicious payloads within the bib_list POST parameter containing time-based SQL injection techniques such as SLEEP() functions (MySQL) or pg_sleep() (PostgreSQL) combined with conditional statements.

The attacker submits specially crafted requests to the vulnerable endpoint and measures response times. By systematically querying character-by-character with conditional delays, the attacker can extract database table names, column names, and sensitive data values. Automated tools like SQLMap can significantly accelerate this extraction process, making full database compromise achievable in a matter of hours.

Detection Methods for CVE-2024-36058

Indicators of Compromise

  • Unusual or repeated POST requests to /cgi-bin/koha/opac-sendbasket.pl with abnormally long or malformed bib_list parameter values
  • HTTP requests containing SQL keywords such as SLEEP, BENCHMARK, WAITFOR, pg_sleep, or IF() in POST data
  • Database query logs showing abnormally long-running queries originating from the OPAC basket functionality
  • Patterns of requests with incrementing or sequential timing behavior indicating automated extraction attempts

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect and block SQL injection patterns in POST parameters targeting Koha endpoints
  • Enable and monitor database slow query logs for queries with unusual delay patterns or SQL injection syntax
  • Deploy application-layer intrusion detection systems configured with signatures for time-based SQL injection attack patterns
  • Analyze web server access logs for high-frequency requests to the affected endpoint from single IP addresses

Monitoring Recommendations

  • Configure alerting for any requests to /cgi-bin/koha/opac-sendbasket.pl containing SQL injection indicators in the bib_list parameter
  • Monitor database server CPU and query execution times for anomalies that may indicate active exploitation
  • Implement rate limiting on the Send Basket functionality to slow potential automated extraction attempts
  • Enable verbose logging for the Koha OPAC module to capture full request details for forensic analysis

How to Mitigate CVE-2024-36058

Immediate Actions Required

  • Upgrade Koha Library Software to version 23.05.10 or later immediately to patch this vulnerability
  • If immediate patching is not possible, disable or restrict access to the Send Basket functionality until the update can be applied
  • Review database access logs for any signs of exploitation and conduct a security audit of potentially exposed data
  • Consider implementing a Web Application Firewall (WAF) as an additional defensive layer

Patch Information

The Koha Community has released security patches addressing this vulnerability. Administrators should update to Koha version 23.05.10 or 22.05.22 (for the older release branch) which contain the necessary fixes. Detailed release notes are available at the GitLab Koha Release Notes 23.05.10 and additional information can be found in the Koha Community Release Announcement.

Workarounds

  • Disable the Send Basket functionality by restricting access to /cgi-bin/koha/opac-sendbasket.pl through web server configuration until patching is completed
  • Implement strict input validation at the web server or reverse proxy level to reject requests containing SQL injection patterns
  • Deploy a WAF rule to block requests with suspicious characters or SQL syntax in POST parameters to Koha OPAC endpoints
  • Restrict OPAC access to trusted IP ranges if public access is not required during the remediation window
bash
# Apache configuration to temporarily disable Send Basket endpoint
<Location /cgi-bin/koha/opac-sendbasket.pl>
    Require all denied
    # Optionally log blocked attempts
    LogLevel warn
</Location>

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechKoha

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-89
  • Technical References
  • GitHub CVE-2024-36058 Research

  • GitLab Koha Release Notes 23.05.10

  • GitLab Koha Release Notes 23.05.11

  • Koha Community Release Announcement
  • Related CVEs
  • CVE-2026-31844: Koha Staff Interface SQL Injection Flaw

  • CVE-2025-22954: Koha Library System SQL Injection Flaw

  • CVE-2024-36057: Koha Library Command Injection RCE Flaw

  • CVE-2026-26377: Koha Library System XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English