craftcms/cms · Security
Craft CMS has a theoretical bypass for CVE-2025-23209
- GHSA ID
- GHSA-2vcf-qxv3-2mgw
- CVE ID
- CVE-2025-54417
- Severity
- medium
- Published
- Updated
- CVSS v4
- 5.2 · CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U
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)
CWEs
- CWE-94 · Improper Control of Generation of Code ('Code Injection')
References
- https://github.com/craftcms/cms/security/advisories/GHSA-2vcf-qxv3-2mgw ↗
- https://nvd.nist.gov/vuln/detail/CVE-2025-23209 ↗
- https://github.com/craftcms/cms/commit/a19d46be78a9ca1ea474012a10e97bed0d787f57 ↗
- https://nvd.nist.gov/vuln/detail/CVE-2025-54417 ↗
- https://github.com/advisories/GHSA-2vcf-qxv3-2mgw ↗