CVE-2024-24570 Statamic account takeover via XSS and password reset link

High 8.2 Published Updated

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.

PackageAffectedFixed in
statamic/cms PackagistAll versions3.4.17
statamic/cms PackagistAll versions3.4.17
statamic/cms PackagistFrom 4.004.46.0
statamic/cms PackagistFrom 4.004.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.

Sources

Also known as GHSA-vqxq-hvxw-9mv9.

Is CVE-2024-24570 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free