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-2024-48928

CVE-2024-48928: Piwigo Auth Bypass Vulnerability

CVE-2024-48928 is an authentication bypass vulnerability in Piwigo photo gallery application caused by weak secret key generation. This post covers technical details, affected versions, impact, and mitigation.

Published: February 27, 2026

CVE-2024-48928 Overview

CVE-2024-48928 is an Insecure Random Number Generation vulnerability affecting Piwigo, an open source photo gallery application for the web. During installation on the 14.x branch, the secret_key configuration parameter is set using MD5(RAND()) in MySQL. However, MySQL's RAND() function only provides approximately 30 bits of randomness, making it computationally feasible to brute-force the secret key within approximately one hour.

The vulnerability allows attackers to derive the secret key by leveraging the CSRF token construction, which partially incorporates this key. Once the secret key is compromised, attackers may be able to generate values for get_ephemeral_key, potentially enabling cross-site request forgery attacks and other security bypasses.

Critical Impact

Weak cryptographic key generation enables brute-force attacks against the application's secret key, potentially compromising CSRF protections and ephemeral key generation.

Affected Products

  • Piwigo versions on the 14.x branch
  • Piwigo installations prior to version 15.0.0
  • Self-hosted Piwigo photo gallery deployments using MySQL

Discovery Timeline

  • 2026-02-24 - CVE CVE-2024-48928 published to NVD
  • 2026-02-25 - Last updated in NVD database

Technical Details for CVE-2024-48928

Vulnerability Analysis

This vulnerability stems from the use of MySQL's RAND() function for generating cryptographic secret keys. The RAND() function is designed for generating pseudo-random numbers for general purposes, not for cryptographic key generation. With only approximately 30 bits of entropy (roughly 1 billion possible values), an attacker can systematically enumerate all possible secret key values.

The attack is made practical because the CSRF token construction incorporates portions of the secret key. By observing CSRF tokens and testing candidate secret keys against them, an attacker can verify when a brute-force attempt has succeeded. The entire keyspace can be exhausted in approximately one hour on modern hardware.

While the overall impact is limited due to additional security layers—the auto login key incorporates the user's password, and the pwg_token uses the session identifier alongside the secret key—successful exploitation could allow generation of ephemeral keys and potential CSRF attacks against authenticated users.

Root Cause

The root cause is the use of an insufficient entropy source (RAND() in MySQL) for generating security-critical cryptographic material. The vulnerable code in install.php uses MD5(RAND()) to generate the secret_key, combining a weak random number generator with MD5 hashing. Since RAND() only provides 30 bits of randomness, the MD5 hash does not increase the effective entropy—it merely obfuscates the underlying weakness.

CWE-330 (Use of Insufficiently Random Values) directly applies to this vulnerability, as the random values used for security purposes do not provide adequate unpredictability.

Attack Vector

The attack requires network access to a Piwigo installation and proceeds as follows:

  1. Attacker obtains a valid CSRF token from the target Piwigo instance
  2. Attacker generates all possible MD5(RAND()) values (approximately 2^30 combinations)
  3. For each candidate, attacker checks if it could produce the observed CSRF token
  4. Upon finding a match, attacker possesses the secret key
  5. Attacker can then forge ephemeral keys or potentially craft CSRF attacks

The fix in version 15.0.0 replaces the weak key generation with cryptographically secure random bytes:

php
// Vulnerable code (before patch)
INSERT INTO config (param,value,comment) 
   VALUES ('secret_key',md5(RAND()),
   'a secret key specific to the gallery for internal use');

// Patched code (after fix)
INSERT INTO config (param,value,comment) 
   VALUES ('secret_key',''.sha1(random_bytes(1000)).''),
   'a secret key specific to the gallery for internal use');

Source: GitHub Commit 552499e

The patch also includes an upgrade script for existing installations:

php
// install/db/174-database.php - Upgrade script for existing installations
if (!defined('PHPWG_ROOT_PATH'))
{
  die('Hacking attempt!');
}

$upgrade_description = 'increase security on secret_key';

conf_update_param('secret_key', sha1(random_bytes(1000)), true);

echo "\n".$upgrade_description."\n";

Source: GitHub Commit 552499e

Detection Methods for CVE-2024-48928

Indicators of Compromise

  • Review the secret_key value in the Piwigo configuration table for MD5-length strings (32 hexadecimal characters) that may indicate weak key generation
  • Monitor for unusual patterns of CSRF token requests from single IP addresses
  • Check web server logs for systematic enumeration patterns against authentication endpoints
  • Look for unexplained session anomalies or unauthorized configuration changes

Detection Strategies

  • Audit Piwigo installation to verify version is 15.0.0 or later
  • Query the database to examine the secret_key entropy by checking its generation method
  • Implement rate limiting on endpoints that expose CSRF tokens
  • Deploy web application firewall rules to detect high-frequency token probing

Monitoring Recommendations

  • Enable detailed logging for authentication and CSRF-related functions
  • Set up alerts for unusual volumes of requests to Piwigo login and form submission endpoints
  • Monitor for automated scanning patterns targeting the Piwigo installation
  • Review access logs periodically for signs of brute-force enumeration activity

How to Mitigate CVE-2024-48928

Immediate Actions Required

  • Upgrade to Piwigo version 15.0.0 or later immediately
  • For installations that cannot be upgraded immediately, manually regenerate the secret_key using cryptographically secure random bytes
  • Review recent authentication logs for signs of exploitation
  • Consider temporarily restricting access to the Piwigo installation until patched

Patch Information

The vulnerability is addressed in Piwigo version 15.0.0. The fix replaces the weak MD5(RAND()) key generation with sha1(random_bytes(1000)), providing cryptographically secure randomness. The patch includes both the installation fix and an upgrade script (install/db/174-database.php) that automatically regenerates the secret key for existing installations.

Detailed patch information is available in the GitHub Security Advisory GHSA-hghg-37rg-7r42 and the commit 552499e.

Workarounds

  • Manually update the secret_key in the database using PHP's random_bytes() function
  • Implement additional network-layer protections such as IP allowlisting for administrative access
  • Deploy a web application firewall to detect and block brute-force enumeration attempts
  • Consider placing Piwigo behind authentication at the reverse proxy level until patched
bash
# Manual secret key regeneration via MySQL (temporary workaround)
# Generate a secure key using PHP and update the database
php -r "echo sha1(random_bytes(1000));"
# Then update the config table:
# UPDATE piwigo_config SET value='<generated_key>' WHERE param='secret_key';

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechPiwigo

  • SeverityLOW

  • CVSS Score2.7

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/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-330
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-hghg-37rg-7r42
  • 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-2026-27634: Piwigo Photo Gallery 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