MEDIUM5.2
GHSA-2vcf-qxv3-2mgw
Craft CMS has a theoretical bypass for CVE-2025-23209
Quick fix
GHSA-2vcf-qxv3-2mgw — craftcms/cms: upgrade to the fixed version with the command below.
composer require craftcms/cms:^4.16.3Details
**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/backups` folder.
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)
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://github.com/craftcms/cms/security/advisories/GHSA-2vcf-qxv3-2mgw[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2025-23209[ADVISORY]
- https://nvd.nist.gov/vuln/detail/CVE-2025-54417[ADVISORY]
- https://github.com/craftcms/cms/commit/a19d46be78a9ca1ea474012a10e97bed0d787f57[WEB]
- https://github.com/craftcms/cms[PACKAGE]