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

CVE-2026-27634: Piwigo Photo Gallery SQLi Vulnerability

CVE-2026-27634 is a SQL injection flaw in Piwigo photo gallery that allows unauthenticated attackers to read the entire database, including password hashes. This article covers technical details, affected versions, and patches.

Published: April 10, 2026

CVE-2026-27634 Overview

CVE-2026-27634 is a SQL Injection vulnerability affecting Piwigo, an open source photo gallery application for the web. Prior to version 16.3.0, four date filter parameters (f_min_date_available, f_max_date_available, f_min_date_created, f_max_date_created) in the ws_std_image_sql_filter() function are concatenated directly into SQL queries without any escaping or type validation. This critical flaw allows unauthenticated attackers to execute arbitrary SQL commands and potentially extract sensitive data from the database.

Critical Impact

Unauthenticated attackers can exploit this SQL Injection vulnerability to read the entire database, including user password hashes, potentially leading to full account compromise and data breach.

Affected Products

  • Piwigo versions prior to 16.3.0
  • All installations using the vulnerable ws_std_image_sql_filter() function
  • Self-hosted Piwigo photo gallery deployments

Discovery Timeline

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

Technical Details for CVE-2026-27634

Vulnerability Analysis

This SQL Injection vulnerability exists in the ws_std_image_sql_filter() function within Piwigo's web services layer. The function processes date filter parameters that are intended to filter image queries by availability and creation dates. However, the implementation directly concatenates user-supplied values into SQL statements without proper sanitization, parameterization, or type validation. Since this functionality is accessible without authentication, any remote attacker can craft malicious requests to inject arbitrary SQL code.

The vulnerability is particularly severe because it enables complete database extraction. An attacker could retrieve user credentials, including password hashes, which could then be cracked offline or used in credential stuffing attacks against other services.

Root Cause

The root cause of CVE-2026-27634 is improper input validation and the lack of prepared statements or parameterized queries when handling date filter parameters. The ws_std_image_sql_filter() function accepts four date parameters and concatenates them directly into SQL queries without verifying that the input conforms to expected datetime formats. This classic SQL Injection pattern violates secure coding principles that mandate treating all user input as untrusted.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker can send crafted HTTP requests to the Piwigo web services API, injecting SQL code through any of the four vulnerable date filter parameters. The injected SQL executes with the privileges of the database user configured for Piwigo, allowing data extraction operations.

php
// Vulnerable code pattern - date parameters concatenated without validation
// The fix adds proper datetime validation before parameters reach SQL queries

// Security patch in include/ws_functions.inc.php
foreach (array('f_min_date_available', 'f_max_date_available', 'f_min_date_created', 'f_max_date_created') as $datefield)
{
  if (isset($params[$datefield]) and !is_valid_mysql_datetime($params[$datefield]))
  {
    global $service;
    $service->sendResponse(new PwgError(WS_ERR_INVALID_PARAM, 'Invalid '.$datefield));
    exit;
  }
}

$clauses = array();
if ( is_numeric($params['f_min_rate']) )
{

Source: GitHub Commit Update

Detection Methods for CVE-2026-27634

Indicators of Compromise

  • Unusual database queries in MySQL/MariaDB logs containing SQL syntax in date parameter fields
  • Web server access logs showing requests to Piwigo API endpoints with malformed date parameters containing SQL keywords (SELECT, UNION, OR, AND)
  • Unexpected database read operations or large data transfers from the database server
  • Error messages in application logs indicating SQL syntax errors from malformed injection attempts

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect SQL Injection patterns in API requests targeting Piwigo date filter parameters
  • Monitor database query logs for anomalous patterns such as UNION-based queries or time-based blind injection techniques
  • Deploy intrusion detection systems (IDS) with signatures for common SQL Injection payloads
  • Review web server logs for requests to /ws.php endpoints containing suspicious characters or SQL keywords in query parameters

Monitoring Recommendations

  • Enable detailed logging on database servers to capture all queries executed against the Piwigo database
  • Set up alerts for failed SQL queries that may indicate injection probing attempts
  • Monitor network traffic for unusual data exfiltration patterns from the database server
  • Implement real-time log analysis to detect patterns consistent with automated SQL Injection tools

How to Mitigate CVE-2026-27634

Immediate Actions Required

  • Upgrade Piwigo to version 16.3.0 or later immediately
  • If immediate upgrade is not possible, restrict access to Piwigo API endpoints at the network or web server level
  • Review database logs for evidence of prior exploitation
  • Consider rotating all user credentials if compromise is suspected
  • Implement WAF rules to block SQL Injection attempts as a temporary measure

Patch Information

Piwigo has addressed this vulnerability in version 16.3.0. The patch introduces the is_valid_mysql_datetime() function that validates date parameters against expected MySQL datetime formats (YYYY-MM-DD HH:MM:SS or YYYY-MM-DD) before they are used in SQL queries. The fix ensures that only properly formatted datetime strings can pass through to the database layer.

For detailed patch information, refer to:

  • GitHub Security Advisory
  • Security Patch Commit
  • Piwigo Version 16.3.0 Release Notes

Workarounds

  • Restrict network access to Piwigo API endpoints using firewall rules or web server configuration
  • Implement a reverse proxy with SQL Injection filtering capabilities in front of Piwigo
  • Disable public API access if not required for your deployment
  • Use database firewall solutions to block queries containing injection patterns
bash
# Example: Restrict access to Piwigo API at nginx level
# Add to your Piwigo server block configuration

location ~ /ws\.php {
    # Allow only trusted IP addresses until patched
    allow 192.168.1.0/24;
    deny all;
    
    # Or block requests with suspicious date parameters
    if ($query_string ~* "(union|select|insert|update|delete|drop|;|--|')") {
        return 403;
    }
}

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 Score8.7

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/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
  • AvailabilityNone
  • CWE References
  • CWE-89
  • Technical References
  • Piwigo Version Release
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-27885: Piwigo Photo Gallery SQLi Vulnerability

  • CVE-2026-27834: Piwigo SQL Injection 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