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

CVE-2026-27834: Piwigo SQL Injection Vulnerability

CVE-2026-27834 is a SQL injection flaw in Piwigo photo gallery affecting the pwg.users.getList API method. Authenticated administrators can execute arbitrary SQL commands. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: April 10, 2026

CVE-2026-27834 Overview

CVE-2026-27834 is a SQL Injection vulnerability affecting Piwigo, an open source photo gallery application for the web. Prior to version 16.3.0, the pwg.users.getList Web Service API method contains a critical flaw where the filter parameter is directly concatenated into a SQL query without proper sanitization. This allows authenticated administrators to execute arbitrary SQL commands against the underlying database.

Critical Impact

Authenticated administrators can leverage this SQL Injection vulnerability to read, modify, or delete database contents, potentially compromising the entire photo gallery application and underlying system data.

Affected Products

  • Piwigo versions prior to 16.3.0
  • Piwigo pwg.users.getList Web Service API endpoint
  • All Piwigo installations with administrative API access enabled

Discovery Timeline

  • April 3, 2026 - CVE-2026-27834 published to NVD
  • April 9, 2026 - Last updated in NVD database

Technical Details for CVE-2026-27834

Vulnerability Analysis

This SQL Injection vulnerability resides in the pwg.users.getList Web Service API method within the Piwigo photo gallery application. The root cause is insufficient input validation and lack of proper parameterization when constructing database queries. When an authenticated administrator interacts with this API endpoint, the filter parameter value is directly concatenated into the SQL query string without sanitization or escaping.

The vulnerability requires administrator-level privileges to exploit, which limits the attack surface to authenticated sessions. However, once exploited, an attacker with administrative access could extract sensitive data from the database, modify records, or potentially achieve database server compromise depending on database permissions and configuration.

Root Cause

The vulnerability stems from improper input sanitization in the include/ws_functions/pwg.users.php file. The filter parameter was being directly interpolated into a SQL query that searches the GROUPS_TABLE for matching group names. Without proper escaping using functions like pwg_db_real_escape_string(), malicious SQL syntax within the filter parameter would be interpreted as part of the query structure rather than as literal search text.

Attack Vector

The attack is network-based and requires the attacker to have authenticated administrator credentials. The vulnerable endpoint is the pwg.users.getList Web Service API method. An attacker would craft a malicious filter parameter containing SQL injection payloads designed to manipulate the query execution. Common attack patterns include UNION-based injection to extract data from other tables, time-based blind injection for data exfiltration, or stacked queries for database modification.

php
   $filtered_groups = array();
   if (!empty($params['filter']))
   {
-    $filter_query = 'SELECT id FROM `'. GROUPS_TABLE .'` WHERE name LIKE \'%'. $params['filter'] . '%\';';
+    $filter_query = 'SELECT id FROM `'. GROUPS_TABLE .'` WHERE name LIKE \'%'. pwg_db_real_escape_string($params['filter']) . '%\';';
     $filtered_groups_res = pwg_query($filter_query);
     while ($row = pwg_db_fetch_assoc($filtered_groups_res))
     {

Source: GitHub Commit 9df471f

Detection Methods for CVE-2026-27834

Indicators of Compromise

  • Unusual or malformed requests to the pwg.users.getList API endpoint containing SQL syntax characters such as single quotes, semicolons, or UNION keywords
  • Database error messages or unexpected query behavior logged from the Piwigo application
  • Anomalous database queries originating from the web application process that include unexpected SQL operations
  • Evidence of data exfiltration or unauthorized database modifications in audit logs

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect and block SQL injection patterns in API requests to Piwigo endpoints
  • Enable detailed database query logging and monitor for queries containing suspicious patterns from the pwg.users.getList function
  • Configure intrusion detection systems (IDS) to alert on network traffic containing common SQL injection payloads targeting the Piwigo application
  • Review Piwigo application logs for repeated failed API calls or error responses that may indicate exploitation attempts

Monitoring Recommendations

  • Continuously monitor web server access logs for requests to the pwg.users.getList endpoint with unusual parameter values
  • Set up alerting for database connection errors or query failures that could indicate SQL injection attempts
  • Implement rate limiting on API endpoints to slow potential automated exploitation attempts
  • Audit administrative account activity and access patterns for any anomalous behavior

How to Mitigate CVE-2026-27834

Immediate Actions Required

  • Upgrade Piwigo to version 16.3.0 or later immediately to patch this vulnerability
  • Review administrative account credentials and ensure strong password policies are enforced
  • Audit recent API access logs for any signs of exploitation prior to patching
  • Consider temporarily restricting access to the Web Service API if immediate patching is not possible

Patch Information

Piwigo has released version 16.3.0 which addresses this SQL Injection vulnerability. The fix implements proper input sanitization using the pwg_db_real_escape_string() function to escape user-supplied input before inclusion in SQL queries. Organizations should upgrade to this version as soon as possible.

For detailed patch information, refer to the GitHub Security Advisory GHSA-5jwg-cr5q-vjq2 and the Piwigo Release Announcement for version 16.3.0.

Workarounds

  • If immediate patching is not possible, restrict network access to the Piwigo Web Service API to trusted IP addresses only
  • Implement a reverse proxy or WAF with SQL injection filtering rules in front of the Piwigo application
  • Disable or restrict access to the pwg.users.getList API method until the patch can be applied
  • Audit and minimize the number of administrator accounts with API access
bash
# Example: Restrict access to Piwigo API via Apache configuration
<Location "/ws.php">
    Require ip 192.168.1.0/24
    Require ip 10.0.0.0/8
</Location>

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechPiwigo

  • SeverityHIGH

  • CVSS Score7.2

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-89
  • Technical References
  • Piwigo Release Announcement 16.3.0
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-5jwg-cr5q-vjq2
  • Related CVEs
  • CVE-2026-27885: Piwigo Photo Gallery SQLi Vulnerability

  • CVE-2026-27634: Piwigo Photo Gallery SQLi Vulnerability

  • CVE-2026-27833: Piwigo Information Disclosure Flaw

  • CVE-2024-48928: Piwigo Auth Bypass 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