A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-51482

CVE-2024-51482: ZoneMinder Boolean SQL Injection Flaw

CVE-2024-51482 is a boolean-based SQL injection vulnerability in ZoneMinder's web/ajax/event.php function affecting versions up to 1.37.64. This article covers the technical details, affected versions, and mitigation steps.

Published: May 26, 2026

CVE-2024-51482 Overview

ZoneMinder is a free, open source closed-circuit television (CCTV) software application widely deployed for managing IP camera surveillance systems. CVE-2024-51482 is a boolean-based SQL injection vulnerability in the web/ajax/event.php component. The flaw affects ZoneMinder versions 1.37.* up to and including 1.37.64 and is resolved in version 1.37.65. An authenticated attacker with low privileges can inject arbitrary SQL through unsanitized request parameters, leading to database compromise across confidentiality, integrity, and availability boundaries.

Critical Impact

A low-privileged authenticated user can extract, modify, or destroy data in the ZoneMinder database and pivot to compromise the broader surveillance infrastructure.

Affected Products

  • ZoneMinder 1.37.0 through 1.37.64
  • ZoneMinder web component web/ajax/event.php
  • Fixed in ZoneMinder 1.37.65

Discovery Timeline

  • 2024-10-31 - CVE-2024-51482 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2024-51482

Vulnerability Analysis

The vulnerability resides in the removetag action handler inside web/ajax/event.php. The handler reads the tid parameter directly from $_REQUEST and concatenates it into a SQL string without parameterization or type validation. An attacker can manipulate the tid value to craft boolean expressions that alter query logic. Because the query result drives application response behavior, a boolean-based blind SQL injection becomes feasible. Attackers can iteratively probe the database to exfiltrate credentials, session data, and configuration details that govern camera access and recording retention. The Common Weakness Enumeration classifies this issue as [CWE-89] Improper Neutralization of Special Elements used in an SQL Command.

Root Cause

The root cause is direct interpolation of user-controlled input into a SQL statement. The vulnerable code path takes $_REQUEST['tid'] and inserts it inline into SELECT * FROM Events_Tags WHERE TagId = $tagId. No prepared statement, type cast, or input validation guards this query.

Attack Vector

Exploitation requires network access to the ZoneMinder web interface and a valid low-privileged session. The attacker sends a crafted AJAX request to the event.php endpoint with a malicious tid payload. Because the scope changes during exploitation, the attacker can read or alter records outside the authenticated user's normal privilege boundary.

php
     ajaxResponse(array('response'=>$response));
     break;
   case 'removetag' :
-    $tagId = $_REQUEST['tid'];
+    $tagId = validCardinal($_REQUEST['tid']);
     dbQuery('DELETE FROM Events_Tags WHERE TagId = ? AND EventId = ?', array($tagId, $_REQUEST['id']));
-    $sql = "SELECT * FROM Events_Tags WHERE TagId = $tagId";
-    $rowCount = dbNumRows($sql);
+    $rowCount = dbNumRows('SELECT * FROM Events_Tags WHERE TagId=?', [ $tagId ]);
     if ($rowCount < 1) {
-      $sql = 'DELETE FROM Tags WHERE Id = ?';
-      $values = array($_REQUEST['tid']);
-      $response = dbNumRows($sql, $values);
+      $response = dbNumRows('DELETE FROM Tags WHERE Id=?', [$tagId]);
       ajaxResponse(array('response'=>$response));
     }
     ajaxResponse();

Source: ZoneMinder GitHub Commit 9e7d318. The patch replaces string interpolation with parameterized queries and validates tid through validCardinal() to enforce numeric input.

Detection Methods for CVE-2024-51482

Indicators of Compromise

  • HTTP requests to /zm/index.php or /zm/ajax/event.php containing SQL metacharacters such as single quotes, UNION, SLEEP, AND 1=1, or comment sequences within the tid parameter.
  • Repeated AJAX removetag actions from a single authenticated session over a short interval, indicating automated blind injection probing.
  • Anomalous read or delete operations against the Events_Tags and Tags MariaDB or MySQL tables outside normal application workflows.

Detection Strategies

  • Inspect web server access logs for event.php requests where the tid query parameter is non-numeric or exceeds expected length.
  • Enable MySQL or MariaDB general query logging on ZoneMinder backends and alert on queries referencing Events_Tags that contain inline boolean expressions.
  • Deploy a web application firewall rule that blocks SQL keywords in tid and id parameters submitted to ZoneMinder AJAX endpoints.

Monitoring Recommendations

  • Track authentication events and correlate low-privileged sessions with bursts of event.php traffic.
  • Monitor outbound database egress and CPU spikes on the ZoneMinder host, which can indicate time-based injection attempts.
  • Forward ZoneMinder application logs and HTTP access logs to a centralized analytics platform for retroactive hunting.

How to Mitigate CVE-2024-51482

Immediate Actions Required

  • Upgrade ZoneMinder to version 1.37.65 or later, which contains the official fix referenced in advisory GHSA-qm8h-3xvf-m7j3.
  • Restrict access to the ZoneMinder web console to trusted networks using firewall ACLs or VPN gating.
  • Audit existing user accounts and revoke unused or shared credentials that could be abused by an insider.

Patch Information

The upstream fix is delivered in commit 9e7d31841ed9678a7dd06869037686fc9925e59f and shipped with ZoneMinder 1.37.65. The patch replaces unsafe SQL string concatenation in web/ajax/event.php with prepared statements and validates the tid parameter through validCardinal(). Administrators running any 1.37.x release at or below 1.37.64 must apply this update.

Workarounds

  • Apply the upstream patch manually to web/ajax/event.php if an immediate version upgrade is not feasible.
  • Place ZoneMinder behind a reverse proxy that enforces strict input validation on the tid parameter, rejecting non-numeric values.
  • Disable or restrict the removetag AJAX action at the web server level until the upgrade is completed.
bash
# Example nginx rule to block non-numeric tid values on event.php
location ~ /zm/ajax/event\.php$ {
    if ($arg_tid !~ "^[0-9]+$") {
        return 400;
    }
    proxy_pass http://zoneminder_backend;
}

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechZoneminder

  • SeverityCRITICAL

  • CVSS Score9.9

  • EPSS Probability50.86%

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

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-27470: ZoneMinder Second-Order SQLi Vulnerability

  • CVE-2025-65791: Zoneminder RCE Vulnerability

  • CVE-2023-26039: ZoneMinder OS Command Injection Vulnerability

  • CVE-2023-26035: ZoneMinder Unauthenticated RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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