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

- Severity: Low 2.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2026-02-24T16:39:56.944Z
- Modified: 2026-06-17T07:59:04.203Z
- Weaknesses: CWE-330
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- Piwigo Piwigo: >= 14.0.0, < 15.0.0; from 14.0.0 up to 14.5.0

## Every score

- GitHub_M: CVSS:4.0 2.7 Low `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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/Piwigo/Piwigo/security/advisories/GHSA-hghg-37rg-7r42> (vendor-advisory)
- <https://github.com/Piwigo/Piwigo/commit/552499e0533ce54b55f4304b41ca6cd7ccce51f8> (patch)

## Sources

- CVE List: [CVE-2024-48928](https://www.cve.org/CVERecord?id=CVE-2024-48928), CVE Terms of Use, modified 2026-02-27
- NVD: [CVE-2024-48928](https://nvd.nist.gov/vuln/detail/CVE-2024-48928), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-48928 · Whole record: https://cve.day/CVE-2024-48928.json · Rebuilt by cve.day 2026-11-25T22:58:52.980Z
