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-2025-9412

CVE-2025-9412: Lostvip Ruoyi-go SQL Injection Vulnerability

CVE-2025-9412 is a SQL injection flaw in Lostvip Ruoyi-go affecting the SelectListByPage function. Attackers can exploit this remotely to manipulate database queries. This article covers technical details, affected versions, and mitigation.

Published: April 1, 2026

CVE-2025-9412 Overview

A SQL injection vulnerability has been identified in lostvip-com ruoyi-go up to version 2.1. This security flaw affects the SelectListByPage function within the file modules/system/dao/DictDataDao.go. The vulnerability allows attackers to manipulate the orderByColumn and isAsc parameters to inject malicious SQL queries, enabling unauthorized database access and manipulation.

Critical Impact

Remote attackers can exploit this SQL injection vulnerability to execute arbitrary SQL commands against the backend database, potentially leading to data theft, modification, or destruction of sensitive information stored in the application's database.

Affected Products

  • lostvip ruoyi-go versions up to 2.1
  • Applications utilizing the DictDataDao.go module with the vulnerable SelectListByPage function
  • Deployments exposing the affected endpoints to network access

Discovery Timeline

  • August 25, 2025 - CVE-2025-9412 published to NVD
  • October 9, 2025 - Last updated in NVD database

Technical Details for CVE-2025-9412

Vulnerability Analysis

This SQL injection vulnerability (CWE-89) exists due to improper neutralization of special elements used in SQL commands within the SelectListByPage function. The affected code resides in modules/system/dao/DictDataDao.go and fails to properly sanitize user-controllable input before incorporating it into SQL queries. Additionally, this vulnerability falls under CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component), indicating a broader injection flaw pattern.

The vulnerability can be exploited remotely by authenticated users with low privileges. Successful exploitation can lead to unauthorized access to database contents, including confidential data, as well as the ability to modify or delete database records.

Root Cause

The root cause of this vulnerability stems from insufficient input validation and parameterization in the SelectListByPage function. The orderByColumn and isAsc parameters are directly concatenated into SQL queries without proper sanitization or the use of prepared statements. This allows attackers to break out of the intended SQL syntax and inject arbitrary SQL commands.

In Go applications using database operations, dynamic SQL construction with user input—particularly for ORDER BY clauses—is a common source of SQL injection vulnerabilities when proper parameterization is not employed.

Attack Vector

The attack vector for CVE-2025-9412 is network-based, allowing remote exploitation. An authenticated attacker with low-level privileges can craft malicious HTTP requests containing SQL injection payloads in the orderByColumn or isAsc parameters. The vulnerable application processes these parameters without adequate validation, passing them directly to the database engine.

The exploitation requires no user interaction and has low attack complexity. An attacker could leverage this vulnerability to extract sensitive data from the database, modify existing records, or potentially escalate privileges within the application if database credentials are stored with elevated permissions.

Technical details and proof-of-concept information are available through the GitHub CVE Issue #6 and GitHub CVE Issue #7 repositories.

Detection Methods for CVE-2025-9412

Indicators of Compromise

  • Unusual SQL syntax or error messages in application logs related to DictDataDao.go or the SelectListByPage function
  • HTTP requests containing SQL keywords or special characters in orderByColumn or isAsc parameters
  • Database query logs showing unexpected ORDER BY clause modifications or UNION-based injection attempts
  • Anomalous database access patterns or queries returning unusually large result sets

Detection Strategies

  • Deploy Web Application Firewall (WAF) rules to detect SQL injection patterns in the orderByColumn and isAsc parameters
  • Implement application-level logging to monitor and alert on suspicious parameter values containing SQL meta-characters
  • Configure database audit logging to track unusual query patterns or unauthorized data access attempts
  • Use SentinelOne's application vulnerability detection to identify exploitation attempts targeting this specific endpoint

Monitoring Recommendations

  • Enable verbose logging on endpoints utilizing the SelectListByPage function in DictDataDao.go
  • Monitor for HTTP 500 errors or database exceptions that may indicate failed injection attempts
  • Implement rate limiting on affected endpoints to slow down automated exploitation attempts
  • Establish baseline query patterns and alert on deviations that may indicate SQL injection activity

How to Mitigate CVE-2025-9412

Immediate Actions Required

  • Review and restrict network access to the affected ruoyi-go application endpoints
  • Implement input validation to whitelist acceptable values for orderByColumn and isAsc parameters
  • Deploy WAF rules to block SQL injection attack patterns targeting the vulnerable parameters
  • Audit database permissions to ensure the application uses least-privilege database accounts

Patch Information

The vendor (lostvip) was contacted about this disclosure but did not respond. As of the last NVD update on October 9, 2025, no official patch has been released. Organizations using ruoyi-go should implement the workarounds below and monitor the official repository for security updates.

For additional vulnerability details, refer to the VulDB CVE Analysis #321253 and VulDB #321253 entries.

Workarounds

  • Implement a whitelist-based validation approach for the orderByColumn parameter, allowing only predefined column names
  • Restrict the isAsc parameter to accept only ASC or DESC values through explicit validation
  • Consider implementing a custom patch to use parameterized queries or an ORM that handles ORDER BY clauses safely
  • Deploy network segmentation to limit exposure of the vulnerable application to trusted networks only
bash
# Example input validation approach (implement in application code)
# Whitelist allowed column names for orderByColumn parameter
ALLOWED_COLUMNS="dict_code,dict_sort,dict_label,dict_value,status,create_time"

# Validate isAsc parameter accepts only valid values
ALLOWED_ORDER="ASC,DESC"

# Apply network-level restrictions using iptables
iptables -A INPUT -p tcp --dport 8080 -s 10.0.0.0/8 -j ACCEPT
iptables -A INPUT -p tcp --dport 8080 -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/TechLostvip Ruoyi Go

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.04%

  • 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:P/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-74

  • CWE-89
  • Technical References
  • GitHub CVE Issue #6

  • GitHub CVE Issue #7

  • VulDB CVE Analysis #321253

  • VulDB #321253

  • VulDB Submission #633704

  • VulDB Submission #633705
  • Related CVEs
  • CVE-2025-10218: Lostvip Ruoyi-go SQL Injection Vulnerability

  • CVE-2025-9413: Lostvip Ruoyi-go SQL Injection Vulnerability

  • CVE-2025-9410: Lostvip Ruoyi-go SQL Injection 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