Security advisoryCVE-2023-47129
Statamic CMS remote code execution via front-end form uploads
As published by the sources
Affected packages
- Affected
>=4.0.0,<4.33.0 || <3.4.13Fixed in3.4.134.33.0
Derived from the fixed versions above
What to do
Upgrade statamic/cms to the fixed version in your release line: 3.4.13, 4.33.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
On front-end forms with an asset upload field, PHP files crafted to look like images may be uploaded regardless of mime validation rules. This only affects forms using the "Forms" feature and not just any arbitrary form. This does not affect the control panel.
Patches
It has been patched in 3.4.13 and 4.33.0.
References
- Advisoryhttps://github.com/advisories/GHSA-72hg-5wr5-rmfc
- Webhttps://github.com/statamic/cms/security/advisories/GHSA-72hg-5wr5-rmfc
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2023-47129
- Webhttps://github.com/statamic/cms/commit/098ef8024d97286ca501273c18ae75b646262d75
- Webhttps://github.com/statamic/cms/commit/f6c688154f6bdbd0b67039f8f11dcd98ba061e77
- Packagehttps://github.com/statamic/cms