CVE-2024-24570 Statamic account takeover via XSS and password reset link
Attackers can upload malicious HTML files disguised as images to execute XSS, potentially stealing password reset tokens and taking over user accounts.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-24570?
CVE-2024-24570 is a high-severity cross-site scripting vulnerability in statamic cms, published on 1 Feb 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Statamic is a Laravel and Git powered CMS. HTML files crafted to look like jpg files are able to be uploaded, allowing for XSS. This affects the front-end forms with asset fields without any mime type validation, asset fields in the control panel, and asset browser in the control panel. Additionally, if the XSS is crafted in a specific way, the "copy password reset link" feature may be exploited to gain access to a user's password reset token and gain access to their account. The authorized user is required to execute the XSS in order for the vulnerability to occur. In versions 4.46.0 and 3.4.17, the XSS vulnerability has been patched, and the copy password reset link functionality has been disabled.
Weakness: CWE-79
Which versions are affected by CVE-2024-24570?
4 open source packages ship an affected version, including statamic/cms. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
statamic/cms Packagist | All versions | 3.4.17 |
statamic/cms Packagist | All versions | 3.4.17 |
statamic/cms Packagist | From 4.00 | 4.46.0 |
statamic/cms Packagist | From 4.00 | 4.46.0 |
Products include Statamic Statamic.
How do I fix CVE-2024-24570?
Upgrade statamic/cms to a fixed version for your release line: 3.4.17 or 4.46.0.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2024-24570 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-24570 exists.
Other vulnerabilities in statamic cms
- CVE-2021-45364 Code injection in n/a
- CVE-2026-27593 Statamic is vulnerable to account takeover via password reset link injection
- CVE-2026-27939 Statamic allows Authenticated Control Panel users to escalate privileges via elevated session bypass
- CVE-2023-48217 Remote code execution via form uploads in statamic/cms
- CVE-2017-11422 Statamic framework Incorrect Permission Assignment
Sources
Also known as GHSA-vqxq-hvxw-9mv9.