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

CVE-2024-8332: Master-nan Sweet-CMS SQLi Vulnerability

CVE-2024-8332 is a critical SQL injection vulnerability in Master-nan Sweet-CMS affecting the /table/index endpoint. Attackers can exploit this remotely to manipulate databases. This article covers technical details, impact, and patches.

Published: May 26, 2026

CVE-2024-8332 Overview

CVE-2024-8332 is a SQL injection vulnerability [CWE-89] in master-nan Sweet-CMS, an open-source content management system written in Go. The flaw resides in the /table/index endpoint, where attacker-controlled input reaches database query construction without proper sanitization. Remote attackers with low privileges can manipulate query parameters to inject arbitrary SQL statements. Sweet-CMS follows a rolling release model, so no specific affected version range is available. The maintainer published a patch under commit hash 146359646a5a90cb09156dbd0013b7df77f2aa6c, which introduces input sanitization via a utils.SanitizeInput helper.

Critical Impact

Authenticated remote attackers can inject SQL commands through the /table/index endpoint, potentially exposing or modifying database contents handled by Sweet-CMS.

Affected Products

  • master-nan Sweet-CMS (rolling release prior to commit 146359646a5a90cb09156dbd0013b7df77f2aa6c)
  • Deployments exposing the /table/index endpoint to untrusted users
  • Self-hosted Sweet-CMS instances built from affected Git revisions

Discovery Timeline

  • 2024-08-30 - CVE-2024-8332 published to NVD
  • 2024-09-03 - Last updated in NVD database

Technical Details for CVE-2024-8332

Vulnerability Analysis

The vulnerability is a classic SQL injection [CWE-89] in the Sweet-CMS dictionary and generalization controllers. User-supplied path parameters such as code and id flow directly into downstream database query logic without sanitization. An attacker authenticated with low privileges can craft malicious values for these parameters to alter query semantics.

Because Sweet-CMS is written in Go using the Gin web framework, the input is read through ctx.Param(...) and passed to service-layer functions that compose SQL queries. Without parameterization or sanitization, this enables injection of arbitrary SQL fragments.

The EPSS score of 0.128% indicates a low predicted likelihood of exploitation in the wild, but the impact on data confidentiality and integrity in affected deployments remains significant.

Root Cause

The root cause is missing input validation on path parameters consumed by controllers in controller/sys_dict_controller.go and controller/generalization_controller.go. The patched code introduces utils.SanitizeInput around ctx.Param("code") and reorders response initialization in the Query handler to ensure error context exists before parameter parsing.

Attack Vector

An attacker sends a crafted HTTP request to the /table/index route (or related dictionary endpoints) with a malicious id or code value. The injected payload is concatenated into the backing SQL query, allowing the attacker to read or modify database records accessible to the Sweet-CMS service account.

go
// Patch in controller/sys_dict_controller.go
func (t *DictController) GetSysDictByCode(ctx *gin.Context) {
    resp := response.NewResponse()
    ctx.Set("response", resp)
-   code := ctx.Param("code")
+   code := utils.SanitizeInput(ctx.Param("code"))
    data, err := t.sysDictService.GetSysDictByCode(code)
    if err != nil {
        e := &response.AdminError{

Source: GitHub Commit 146359646a

go
// Patch in controller/generalization_controller.go
func (gc *GeneralizationController) Query(ctx *gin.Context) {
-   id, err := strconv.Atoi(ctx.Param("id"))
    resp := response.NewResponse()
    ctx.Set("response", resp)
+   id, err := strconv.Atoi(ctx.Param("id"))
    if err != nil {
        _ = ctx.Error(err)
        return

Source: GitHub Commit 146359646a

Detection Methods for CVE-2024-8332

Indicators of Compromise

  • HTTP requests to /table/index or dictionary endpoints containing SQL meta-characters such as ', --, UNION, or SLEEP( in path parameters
  • Application logs showing parsing errors from strconv.Atoi on the id path parameter followed by successful subsequent queries
  • Unexpected database errors or unusually long query execution times originating from Sweet-CMS service accounts

Detection Strategies

  • Inspect web server and reverse proxy logs for non-numeric or oversized values in the id and code path parameters of Sweet-CMS routes
  • Deploy web application firewall (WAF) signatures for common SQL injection payload patterns targeting Gin-based applications
  • Enable database query logging and alert on queries containing tautologies (OR 1=1), UNION SELECT, or time-based delays

Monitoring Recommendations

  • Correlate authentication events with downstream requests to /table/index to identify low-privileged accounts probing the endpoint
  • Baseline normal parameter values for Sweet-CMS routes and alert on statistical deviations
  • Monitor outbound network traffic from the Sweet-CMS host for signs of data exfiltration following suspicious requests

How to Mitigate CVE-2024-8332

Immediate Actions Required

  • Rebuild and redeploy Sweet-CMS from a Git revision that includes commit 146359646a5a90cb09156dbd0013b7df77f2aa6c or later
  • Restrict network access to Sweet-CMS administrative endpoints to trusted users and management networks
  • Audit existing accounts and rotate credentials if exposure to untrusted users is suspected

Patch Information

Apply the upstream fix delivered in GitHub commit 146359646a5a90cb09156dbd0013b7df77f2aa6c. The patch routes code parameters through utils.SanitizeInput and reorders the Query handler so the response context is established before parameter parsing. Because Sweet-CMS uses rolling releases, verify the deployed binary by checking the commit hash baked into the build rather than relying on version tags. Additional discussion is available in the project's GitHub Issue #1 and GitHub Issue #2.

Workarounds

  • Place Sweet-CMS behind a WAF configured to block SQL injection patterns on the /table/index and dictionary endpoints
  • Enforce strict request validation at the reverse proxy, rejecting non-integer id values and non-alphanumeric code values
  • Run the Sweet-CMS database account with least-privilege grants, removing DROP, ALTER, and cross-database read access
bash
# Example nginx rule rejecting non-numeric id path parameters
location ~ ^/table/index/(?<tid>[^/]+)$ {
    if ($tid !~ ^[0-9]+$) { return 400; }
    proxy_pass http://sweet_cms_upstream;
}

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechSweet Cms

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.13%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-89
  • Technical References
  • GitHub Issue Discussion #1

  • GitHub Issue Discussion #2

  • VulDB #276208 (CTI)

  • VulDB #276208

  • VulDB Submission #398803
  • Vendor Resources
  • GitHub Commit Update
  • Latest CVEs
  • CVE-2024-8261: Prolizyazilim OBS Auth Bypass Vulnerability

  • CVE-2024-13068: LimonDesk Auth Bypass Vulnerability

  • CVE-2025-53679: Fortinet FortiSandbox RCE Vulnerability

  • CVE-2026-9446: Simple POS Inventory System SQLi Flaw
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