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

CVE-2025-40636: Joomla mod_vvisit_counter SQLi Vulnerability

CVE-2025-40636 is a SQL injection flaw in Joomla mod_vvisit_counter v2.0.4j3 that allows attackers to extract database content via the cip_vvisitcounter cookie. This article covers technical details, impact, and mitigation.

Updated: May 15, 2026

CVE-2025-40636 Overview

CVE-2025-40636 is a SQL injection vulnerability in the Joomla module mod_vvisit_counter version 2.0.4j3. The flaw resides in the handling of the cip_vvisitcounter cookie, which the module reads on every page where it tracks visits. Unauthenticated attackers can inject arbitrary SQL statements through this cookie and retrieve database contents. The vulnerability is classified under CWE-89 (Improper Neutralization of Special Elements used in an SQL Command).

Critical Impact

Remote, unauthenticated attackers can extract arbitrary database content from any Joomla site running the affected module by manipulating a cookie value.

Affected Products

  • Joomla CMS extension mod_vvisit_counter
  • Version 2.0.4j3
  • Any Joomla site embedding the module on visitor-tracked endpoints

Discovery Timeline

  • 2025-10-03 - CVE-2025-40636 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2025-40636

Vulnerability Analysis

The mod_vvisit_counter module tracks unique visitors using a client-supplied cookie named cip_vvisitcounter. The module passes the cookie value into a SQL query without proper sanitization or parameterization. An attacker can supply a crafted cookie value that breaks out of the intended query context and appends arbitrary SQL.

Because visit counting executes on every page where the module is rendered, the injection point is reachable on the public-facing front end. No authentication, user interaction, or special privileges are required. The vulnerability scores 9.3 under CVSS 4.0 due to network reach and high impact on confidentiality, integrity, and availability of the backing database.

The EPSS score for this issue is 0.036% (10.8th percentile), reflecting limited public exploit activity at the time of analysis, though the technical barrier to exploitation is low.

Root Cause

The module concatenates the raw cip_vvisitcounter cookie value directly into a SQL statement issued against the Joomla database. The code path neither uses prepared statements nor applies the Joomla database driver's quoting and escaping APIs. Any string accepted by the HTTP cookie parser flows into the query unchanged.

Attack Vector

An attacker sends an HTTP request to any Joomla page that renders the visitor counter and includes a malicious Cookie: cip_vvisitcounter=<payload> header. The payload terminates the original SQL literal and appends statements such as UNION SELECT clauses to exfiltrate data, including Joomla user records, session tokens, and configuration secrets. Blind, time-based, and union-based SQLi techniques are all viable against the unsanitized input.

No proof-of-concept exploit is publicly catalogued for this CVE. Refer to the INCIBE Security Notice for additional technical context.

Detection Methods for CVE-2025-40636

Indicators of Compromise

  • HTTP requests containing SQL metacharacters (', ", --, UNION, SELECT, SLEEP) inside the cip_vvisitcounter cookie value
  • Unusually long or URL-encoded cip_vvisitcounter cookie values inconsistent with normal IP-formatted tokens
  • Joomla database error messages or stack traces referencing the visit counter module in web server logs
  • Outbound connections or DNS queries originating from the database host shortly after suspicious cookie traffic

Detection Strategies

  • Inspect web access logs for cookie values that deviate from the expected IP address format used by mod_vvisit_counter
  • Deploy web application firewall (WAF) rules that flag SQL injection patterns within HTTP cookie headers, not just query strings and POST bodies
  • Correlate spikes in 500-series responses on Joomla pages with anomalous cookie payloads
  • Review database query logs for SELECT statements that reference the visit counter table with embedded boolean or UNION clauses

Monitoring Recommendations

  • Enable verbose logging on the Joomla front-end web server and forward logs to a centralized analytics platform
  • Alert on repeated requests from a single source that vary the cip_vvisitcounter cookie across requests
  • Track database response times for visit counter queries to surface time-based blind SQLi attempts

How to Mitigate CVE-2025-40636

Immediate Actions Required

  • Disable or unpublish the mod_vvisit_counter module in the Joomla administrator interface until a fixed version is confirmed
  • Block or filter the cip_vvisitcounter cookie at the reverse proxy or WAF layer when its value contains non-IP characters
  • Rotate Joomla administrator credentials, API tokens, and database passwords if exploitation is suspected
  • Audit the Joomla #__users table and recent session activity for unauthorized access

Patch Information

No vendor patch is referenced in the NVD entry for CVE-2025-40636. Administrators should monitor the INCIBE Security Notice and the module's distribution channel for an updated release. Until a verified fix exists, treat the module as unsafe to run in production.

Workarounds

  • Replace mod_vvisit_counter with an actively maintained visitor analytics solution that uses parameterized queries
  • Add a WAF signature that rejects requests where cip_vvisitcounter fails strict IPv4 or IPv6 validation
  • Apply database least-privilege so the Joomla application account cannot read sensitive tables outside its scope
bash
# Example ModSecurity rule to drop malformed cip_vvisitcounter cookies
SecRule REQUEST_COOKIES:cip_vvisitcounter "!@rx ^[0-9a-fA-F:.]{1,45}$" \
    "id:1004001,phase:1,deny,status:403,log,\
     msg:'CVE-2025-40636: invalid cip_vvisitcounter cookie format'"

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechJoomla

  • SeverityCRITICAL

  • CVSS Score9.3

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/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
  • AvailabilityHigh
  • CWE References
  • CWE-89
  • Technical References
  • INCIBE Security Notice
  • Related CVEs
  • CVE-2020-37224: Joomla J2 JOBS SQLi Vulnerability

  • CVE-2020-37218: Joomla com_hdwplayer SQL Injection Flaw

  • CVE-2020-37226: Joomla J2 JOBS SQL Injection Vulnerability

  • CVE-2025-49467: JEvents Joomla Component SQLi 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