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

CVE-2026-7048: 10Web Photo Gallery SQL Injection Flaw

CVE-2026-7048 is a time-based blind SQL injection vulnerability in the Photo Gallery by 10Web plugin for WordPress that lets authenticated attackers extract database information. This article covers technical details, affected versions, and mitigation.

Published: May 28, 2026

CVE-2026-7048 Overview

CVE-2026-7048 is a time-based blind SQL injection vulnerability in the Photo Gallery by 10Web – Mobile-Friendly Image Gallery plugin for WordPress. The flaw affects all versions up to and including 1.8.40. The vulnerability resides in the order_by parameter, which is processed without sufficient escaping or query preparation. Authenticated attackers with contributor-level access or above can append arbitrary SQL to existing queries by embedding a malicious shortcode in a post or draft. When the shortcode renders, the injected SQL executes against the WordPress database, enabling extraction of sensitive data.

Critical Impact

Authenticated contributors can exfiltrate database contents — including user credentials, session tokens, and configuration secrets — through time-based blind SQL injection delivered via WordPress shortcodes.

Affected Products

  • Photo Gallery by 10Web – Mobile-Friendly Image Gallery plugin for WordPress
  • All versions up to and including 1.8.40
  • WordPress sites permitting contributor-level (or higher) user registration

Discovery Timeline

  • 2026-05-28 - CVE-2026-7048 published to NVD
  • 2026-05-28 - Last updated in NVD database

Technical Details for CVE-2026-7048

Vulnerability Analysis

The vulnerability is classified as [CWE-89] Improper Neutralization of Special Elements used in an SQL Command. The plugin accepts the order_by parameter from user-controlled input and concatenates it into an SQL query without proper escaping or use of wpdb::prepare() placeholders. Because the injection point is an ORDER BY clause, standard UNION-based extraction is constrained, so attackers rely on time-based blind techniques using payloads such as SLEEP() or BENCHMARK() to infer data one character at a time.

The vulnerable code paths reside in framework/WDWLibrary.php and frontend/controllers/controller.php, where the order_by value flows into the query construction logic. Confidentiality impact is high while integrity and availability are unaffected, consistent with a read-only data extraction primitive.

Root Cause

The root cause is insufficient input validation and absence of parameterized queries for the order_by parameter. WordPress's wpdb API supports placeholder-based query preparation, but the plugin builds the ORDER BY clause using direct string concatenation. Since ORDER BY values cannot be passed as standard %s or %d placeholders, developers must explicitly allowlist column names — a control absent from the affected versions.

Attack Vector

Exploitation requires an authenticated session with contributor privileges or higher. The attacker creates or edits a post or draft and embeds the plugin's shortcode with a crafted order_by attribute containing a SQL payload. When the post is rendered — for example, during a preview or after publication — the shortcode handler executes the tainted query. Time-based responses indicate truth values, allowing iterative extraction of sensitive database content such as the wp_users table.

No verified public proof-of-concept code is referenced in the advisory. Technical analysis is available in the Wordfence Vulnerability Report and the vendor changeset.

Detection Methods for CVE-2026-7048

Indicators of Compromise

  • Database query logs containing SLEEP(, BENCHMARK(, or WAITFOR DELAY within ORDER BY clauses originating from the Photo Gallery plugin.
  • Anomalously long page render times on posts containing the plugin's shortcode.
  • Post or draft content authored by contributor-level accounts that embeds the plugin shortcode with unusual order_by attribute values.
  • Unexpected database errors referencing the plugin's frontend controller in PHP error logs.

Detection Strategies

  • Review WordPress audit logs for contributor-level accounts creating or editing posts that include the Photo Gallery shortcode.
  • Enable MySQL general query logging or slow query logging and alert on queries from the plugin containing time-delay functions.
  • Deploy a web application firewall rule that inspects POST bodies for shortcode attributes carrying SQL keywords such as UNION, SELECT, SLEEP, or IF(.

Monitoring Recommendations

  • Monitor the wp_posts table for newly created drafts containing the plugin shortcode from non-administrator accounts.
  • Track HTTP response latency on endpoints that render plugin shortcodes; sustained multi-second responses warrant investigation.
  • Audit WordPress role assignments to identify unexpected contributor or author accounts that could be used for exploitation.

How to Mitigate CVE-2026-7048

Immediate Actions Required

  • Update the Photo Gallery by 10Web plugin to a version newer than 1.8.40 as soon as the vendor patch is available.
  • Audit and remove unnecessary contributor, author, and editor accounts to reduce the authenticated attack surface.
  • Inspect existing posts and drafts for suspicious uses of the plugin shortcode with non-standard order_by attribute values.
  • Rotate WordPress administrator passwords and database credentials if exploitation is suspected.

Patch Information

The vendor committed a fix in the WordPress plugin repository, referenced as changeset 3532364 for the photo-gallery plugin. Site administrators should upgrade through the WordPress plugin updater. Review the vendor changeset and the Wordfence advisory for full remediation details.

Workarounds

  • Temporarily deactivate the Photo Gallery plugin until the patched version is installed.
  • Restrict the edit_posts capability so that only trusted, vetted users can create or edit content containing shortcodes.
  • Deploy a WordPress-aware web application firewall with virtual patching rules covering this CVE.
  • Disable shortcode rendering in post previews for non-privileged users where feasible.

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechWordpress

  • SeverityMEDIUM

  • CVSS Score6.5

  • 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 Code Snippet

  • WordPress Photo Gallery Code Snippet

  • WordPress Photo Gallery Code Snippet

  • WordPress Photo Gallery Code Snippet

  • WordPress Photo Gallery Code Snippet

  • WordPress Photo Gallery Code Snippet

  • WordPress Photo Gallery Code Snippet

  • WordPress Photo Gallery Code Snippet

  • WordPress Photo Gallery Changeset

  • Wordfence Vulnerability Report
  • Related CVEs
  • CVE-2026-7618: EnvíaloSimple WordPress Plugin SQLi Flaw

  • CVE-2018-25352: WordPress Form Builder Lite SQLi Flaw

  • CVE-2018-25347: WordPress Contact Form Maker SQL Injection

  • CVE-2018-25346: WordPress Form Maker Plugin 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