Insufficient Entropy in Piwigo - CVE-2024-48928

 

Insufficient Entropy in Piwigo - CVE-2024-48928

Published: April 25, 2026


Vulnerability identifier: #VU127941
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2024-48928
CWE-ID: CWE-331
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Piwigo.org
Affected software:
Piwigo

Detailed vulnerability description

The vulnerability allows a remote attacker to generate valid ephemeral keys.

The vulnerability exists due to insufficient entropy in secret_key generation in the installation configuration process when initializing the secret_key value with MD5(RAND()) in MySQL. A remote attacker can brute-force the secret key and verify guesses using the CSRF token construction to generate valid ephemeral keys.

Trying all possible values takes approximately one hour.


How to mitigate CVE-2024-48928

Install security update from vendor's website.

Sources