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-2026-9829

CVE-2026-9829: WordPress Photo Gallery Plugin SQLi Flaw

CVE-2026-9829 is a time-based SQL injection vulnerability in the Photo Gallery by 10Web WordPress plugin, allowing authenticated attackers to extract sensitive database information. This article covers technical details, affected versions, impact, and mitigation.

Published: June 11, 2026

CVE-2026-9829 Overview

CVE-2026-9829 is a time-based SQL injection vulnerability [CWE-89] in the Photo Gallery by 10Web – Mobile-Friendly Image Gallery plugin for WordPress. The flaw affects all versions up to and including 1.8.41. The vulnerable compact_album_order_by shortcode parameter lacks proper escaping and query preparation. Authenticated attackers with Contributor-level access can inject additional SQL queries to extract sensitive database information. The malicious payload is stored via the shortcode_bwg AJAX handler and later triggered by the unauthenticated bwg_frontend_data AJAX handler.

Critical Impact

Authenticated Contributor-level attackers can exfiltrate sensitive database contents, including user credentials and session data, through time-based SQL injection.

Affected Products

  • Photo Gallery by 10Web – Mobile-Friendly Image Gallery plugin for WordPress
  • All plugin versions up to and including 1.8.41
  • WordPress sites permitting Contributor-level user registration

Discovery Timeline

  • 2026-06-06 - CVE-2026-9829 published to NVD
  • 2026-06-08 - Last updated in NVD database

Technical Details for CVE-2026-9829

Vulnerability Analysis

The vulnerability resides in how the Photo Gallery plugin processes the compact_album_order_by shortcode parameter. User-supplied input is concatenated into an SQL query without sufficient escaping or use of prepared statements. This allows attackers to append arbitrary SQL clauses to the existing query.

The attack chain involves two AJAX endpoints. The shortcode_bwg handler accepts the malicious shortcode for storage. Although this handler normally requires a valid nonce, attackers can bypass nonce validation by omitting the page parameter from the request. The stored payload is then executed when the unauthenticated bwg_frontend_data AJAX handler renders the shortcode.

Because the injection is time-based, attackers infer query results by measuring server response delays from payloads such as SLEEP(). This enables blind extraction of database contents one character at a time.

Root Cause

The root cause is insufficient input sanitization combined with unparameterized SQL query construction in the plugin's frontend model code. The compact_album_order_by parameter is interpolated directly into an ORDER BY clause, a context where standard wpdb::prepare() placeholders cannot be applied without an allowlist. The plugin fails to validate the parameter against a fixed set of acceptable column names.

Attack Vector

An authenticated attacker with Contributor-level access submits a crafted shortcode to the shortcode_bwg AJAX endpoint, omitting the page parameter to bypass nonce checks. The shortcode contains a malicious compact_album_order_by value with embedded SQL. Any subsequent request to the unauthenticated bwg_frontend_data endpoint that renders this shortcode triggers execution of the attacker's SQL payload against the WordPress database.

The vulnerability mechanism is documented in the plugin source files referenced in the Wordfence Vulnerability Analysis and the WordPress Photo Gallery Model Code. No public proof-of-concept code is available at this time.

Detection Methods for CVE-2026-9829

Indicators of Compromise

  • POST requests to /wp-admin/admin-ajax.php with action=shortcode_bwg containing SQL keywords such as SLEEP, BENCHMARK, UNION, or SELECT in the compact_album_order_by parameter
  • POST requests to shortcode_bwg missing the page parameter, indicating nonce-bypass attempts
  • Requests to action=bwg_frontend_data immediately following shortcode submission from a Contributor account
  • Unusual response latency on admin-ajax.php consistent with time-based SQL injection probing

Detection Strategies

  • Inspect web server access logs for admin-ajax.php POSTs containing the compact_album_order_by parameter with non-alphanumeric characters or SQL syntax
  • Enable WordPress database query logging and alert on ORDER BY clauses containing functions like SLEEP() or IF()
  • Monitor for Contributor accounts performing AJAX activity outside normal authoring workflows
  • Correlate slow query log entries with the originating HTTP request and user session

Monitoring Recommendations

  • Deploy a Web Application Firewall (WAF) rule set that inspects shortcode parameters for SQL metacharacters
  • Alert on creation of new Contributor accounts followed by AJAX activity to plugin endpoints
  • Track plugin version inventory across WordPress installations and flag instances at or below version 1.8.41

How to Mitigate CVE-2026-9829

Immediate Actions Required

  • Update the Photo Gallery by 10Web plugin to the version released after 1.8.41 that addresses WordPress Changeset #3553847
  • Audit existing Contributor-level accounts and remove any unrecognized users
  • Review the wp_options table and post content for stored shortcodes containing suspicious compact_album_order_by values
  • Rotate database credentials and WordPress administrator passwords if exploitation is suspected

Patch Information

The vendor addressed the vulnerability in WordPress Changeset #3553847. Site administrators should apply the patched plugin version through the WordPress admin dashboard or via WP-CLI. Review the Wordfence Vulnerability Analysis for detailed remediation guidance.

Workarounds

  • Restrict Contributor-level registration and disable open user signup until the plugin is patched
  • Deploy WAF rules to block requests to shortcode_bwg containing SQL keywords in shortcode parameters
  • Temporarily deactivate the Photo Gallery by 10Web plugin if an immediate patch cannot be applied
  • Limit access to admin-ajax.php from untrusted networks where feasible
bash
# Update the Photo Gallery plugin using WP-CLI
wp plugin update photo-gallery

# Verify installed version is above 1.8.41
wp plugin get photo-gallery --field=version

# Audit Contributor accounts
wp user list --role=contributor --fields=ID,user_login,user_registered

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/Tech10web

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-89
  • Technical References
  • WordPress Photo Gallery Shortcode Code

  • WordPress Photo Gallery WDWLibrary Code

  • WordPress Photo Gallery Model Code

  • WordPress Photo Gallery Model Code

  • WordPress Photo Gallery Main Code

  • WordPress Photo Gallery Shortcode Code

  • WordPress Photo Gallery WDWLibrary Code

  • WordPress Photo Gallery Model Code

  • WordPress Photo Gallery Model Code

  • WordPress Photo Gallery Main Code

  • WordPress Changeset #3553847

  • Wordfence Vulnerability Analysis
  • Related CVEs
  • CVE-2025-15441: Form Maker by 10Web SQLi Vulnerability

  • CVE-2025-13377: 10Web Booster Path Traversal 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