The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-2022-24124

CVE-2022-24124: Casbin Casdoor SQL Injection Vulnerability

CVE-2022-24124 is a SQL injection vulnerability in Casbin Casdoor's query API affecting versions before 1.13.1. Attackers can exploit field and value parameters to execute malicious SQL queries. This article covers technical details, affected versions, impact, and mitigation steps.

Published: February 17, 2026

CVE-2022-24124 Overview

CVE-2022-24124 is a SQL injection vulnerability affecting the query API in Casdoor before version 1.13.1. The vulnerability exists in the field and value parameters used by the api/get-organizations endpoint and potentially other similar API endpoints. Successful exploitation allows unauthenticated attackers to extract sensitive data from the underlying database by injecting malicious SQL statements through these vulnerable parameters.

Critical Impact

Unauthenticated attackers can exploit this SQL injection vulnerability to extract sensitive data from the Casdoor database, potentially compromising user credentials, authentication tokens, and organizational data stored in the identity management system.

Affected Products

  • Casbin Casdoor versions prior to 1.13.1
  • Any deployments using vulnerable Casdoor API endpoints with user-controllable field and value parameters

Discovery Timeline

  • 2022-01-29 - CVE-2022-24124 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-24124

Vulnerability Analysis

This SQL injection vulnerability affects Casdoor, an open-source Identity and Access Management (IAM) platform developed by Casbin. The vulnerability resides in the query API functionality, specifically in how the application processes the field and value parameters. These parameters are used to construct dynamic SQL queries but lack proper input sanitization and parameterized query handling.

The attack is network-accessible and requires no authentication or user interaction, making it particularly dangerous for internet-exposed Casdoor deployments. The vulnerability specifically impacts the confidentiality of data, allowing attackers to read arbitrary database contents including user credentials, session tokens, and configuration data that may be stored in the backend database.

Root Cause

The root cause of this vulnerability is improper input validation (CWE-89: SQL Injection). The Casdoor query API directly concatenates user-supplied field and value parameters into SQL queries without adequate sanitization or the use of parameterized queries. This allows attackers to break out of the intended query structure and inject arbitrary SQL commands.

Attack Vector

The vulnerability is exploitable over the network through HTTP requests to the Casdoor API. An attacker can craft malicious requests to endpoints like api/get-organizations with specially crafted field and value parameters containing SQL injection payloads.

The attack requires no authentication and no user interaction. An attacker with network access to a vulnerable Casdoor instance can send HTTP requests with malicious SQL injection payloads in the field or value parameters to extract sensitive data using techniques such as UNION-based injection, boolean-based blind injection, or time-based blind injection depending on the database configuration and response handling.

For detailed technical information about this vulnerability, refer to the Packet Storm SQL Injection Advisory and the GitHub Issue Tracker Discussion.

Detection Methods for CVE-2022-24124

Indicators of Compromise

  • HTTP requests to Casdoor API endpoints containing SQL injection patterns in the field or value parameters
  • Unusual characters in API parameters such as single quotes ('), semicolons (;), UNION, SELECT, or SQL comment sequences (--, /*)
  • Database error messages in application logs indicating malformed SQL queries
  • Unexpected database queries or abnormal query patterns in database audit logs

Detection Strategies

  • Deploy Web Application Firewalls (WAF) with SQL injection detection rules targeting the Casdoor API endpoints
  • Implement application-layer monitoring to detect requests containing SQL injection signatures in the field and value parameters
  • Enable database query logging and establish baselines for normal Casdoor query patterns
  • Configure intrusion detection systems (IDS) to alert on SQL injection patterns in HTTP traffic to Casdoor instances

Monitoring Recommendations

  • Monitor Casdoor access logs for requests to api/get-organizations and similar query endpoints with suspicious parameter values
  • Enable and review database slow query logs for unusual query patterns that may indicate SQL injection attempts
  • Implement real-time alerting for database errors related to SQL syntax from Casdoor application connections
  • Establish network traffic monitoring for anomalous data exfiltration patterns from systems hosting Casdoor databases

How to Mitigate CVE-2022-24124

Immediate Actions Required

  • Upgrade Casdoor to version 1.13.1 or later immediately
  • If immediate patching is not possible, restrict network access to Casdoor API endpoints to trusted IP addresses only
  • Implement WAF rules to filter SQL injection patterns in requests to Casdoor APIs
  • Review database logs for evidence of prior exploitation attempts

Patch Information

The vulnerability has been addressed in Casdoor version 1.13.1. The fix implements proper input sanitization for the field and value parameters in the query API. Organizations should upgrade to version 1.13.1 or later to remediate this vulnerability.

For detailed information about the security fix, refer to the GitHub Pull Request Review and the GitHub Version Comparison.

Workarounds

  • Deploy a reverse proxy or WAF in front of Casdoor to filter malicious SQL injection payloads before they reach the application
  • Implement network segmentation to restrict access to Casdoor API endpoints from untrusted networks
  • Apply IP-based access control lists to limit which clients can reach Casdoor API endpoints
  • Disable or restrict access to the vulnerable query API endpoints if they are not required for operations

If upgrading is not immediately possible, implement network-level controls to restrict access to the Casdoor instance:

bash
# Example iptables configuration to restrict Casdoor API access
# Replace 192.168.1.0/24 with your trusted network range
# Replace 8000 with your Casdoor port

# Allow trusted networks only
iptables -A INPUT -p tcp --dport 8000 -s 192.168.1.0/24 -j ACCEPT

# Drop all other traffic to Casdoor
iptables -A INPUT -p tcp --dport 8000 -j DROP

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechCasdoor

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability57.38%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-89
  • Technical References
  • Packet Storm SQL Injection Advisory

  • GitHub Version Comparison
  • Vendor Resources
  • GitHub Issue Tracker Discussion

  • GitHub Pull Request Review
  • Related CVEs
  • CVE-2026-5467: Casbin Casdoor Open Redirect Vulnerability

  • CVE-2026-5468: Casbin Casdoor XSS Vulnerability

  • CVE-2026-5469: Casbin Casdoor SSRF 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