Affected versions
Composercraftcms/cms
- Affected versions
- >= 5.5.8, < 5.8.4
- Fixed version
- 5.8.4
Composercraftcms/cms
- Affected versions
- >= 4.13.8, < 4.16.3
- Fixed version
- 4.16.3
Exploitation
Description
Pre-requisites:
Have a compromised security key (https://craftcms.com/knowledge-base/securing-craft#keep-your-secrets-secret)
Somehow, manage to create an arbitrary file in Craft’s
/storage/backupsfolder.
With those two pieces in place, you could create a specific, malicious request to the /updater/restore-db endpoint to execute CLI commands remotely.
Fixed in https://github.com/craftcms/cms/commit/a19d46be78a9ca1ea474012a10e97bed0d787f57
Reported by Marco O. (segfault)
Links
- https://github.com/advisories/GHSA-2vcf-qxv3-2mgw
- https://github.com/craftcms/cms
- https://github.com/craftcms/cms/commit/a19d46be78a9ca1ea474012a10e97bed0d787f57
- https://github.com/craftcms/cms/security/advisories/GHSA-2vcf-qxv3-2mgw
- https://nvd.nist.gov/vuln/detail/CVE-2025-23209
- https://nvd.nist.gov/vuln/detail/CVE-2025-54417
Credits
- angrybrad
- timkelty
- segfault-it

