Statamic: Unsafe method invocation via query value resolution allows data destruction
As published by the sources
Affected packages
- Affected
<5.73.20 || >=6.0.0-alpha.1,<6.13.0Fixed in5.73.206.13.0
Derived from the fixed versions above
What to do
Upgrade statamic/cms to the fixed version in your release line: 5.73.20, 6.13.0.
composer update statamic/cms --with-dependencies
To see which version you have installed, run composer show vendor/package. Running composer audit lists the known advisories that match your installed versions.
Quoted from the original advisory
Details
Impact
Manipulating query parameters on Control Panel and REST API endpoints, or arguments in GraphQL queries, could result in the loss of content, assets, and user accounts.
The Control Panel requires authentication with minimal permissions in order to exploit. e.g. "view entries" permission to delete entries, or "view users" permission to delete users, etc.
The REST and GraphQL API exploits do not require any permissions, however neither are enabled by default. In order to be exploited, they would need to be explicitly enabled with no authentication configured, and the specific resources enabled too.
Sites that enable the REST or GraphQL API without authentication should treat patching as critical priority.
Patches
This has been fixed in 5.73.20 and 6.13.0.