CVE-2024-52291

HIGH
Published Nov 13, 2024 Modified Nov 19, 2024 CWE-22

Description

Craft is a content management system (CMS). A vulnerability in CraftCMS allows an attacker to bypass local file system validation by utilizing a double file:// scheme (e.g., file://file:////). This enables the attacker to specify sensitive folders as the file system, leading to potential file overwriting through malicious uploads, unauthorized access to sensitive files, and, under certain conditions, remote code execution (RCE) via Server-Side Template Injection (SSTI) payloads. Note that this will only work if you have an authenticated administrator account with allowAdminChanges enabled. This is fixed in 5.4.6 and 4.12.5.

Is your site exposed to CVE-2024-52291?

Run a free security scan — no signup, results in seconds.

CVSS v3.1 Score

8.4
HIGH
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H

Weakness Type (CWE)

CWE-22 Path Traversal

Affected Products

Vendor Product
craftcms craft_cms
craftcms craft_cms
craftcms craft_cms
craftcms craft_cms
craftcms craft_cms
craftcms craft_cms

References

Frequently Asked Questions

What is CVE-2024-52291? +
Craft is a content management system (CMS). A vulnerability in CraftCMS allows an attacker to bypass local file system validation by utilizing a double file:// scheme (e.g., file://file:////). This enables the attacker to specify sensitive folders as the file system, leading to potential file overwriting through malicious uploads, unauthorized access to sensitive files, and, under certain conditions, remote code execution (RCE) via Server-Side Template Injection (SSTI) payloads. Note that this will only work if you have an authenticated administrator account with allowAdminChanges enabled. This is fixed in 5.4.6 and 4.12.5. It has a CVSS v3.1 base score of 8.4 (HIGH).
How severe is CVE-2024-52291? +
CVE-2024-52291 has a CVSS v3.1 score of 8.4 out of 10, rated HIGH. This is a high-severity vulnerability that should be prioritized for patching.
What products are affected by CVE-2024-52291? +
CVE-2024-52291 affects products from craftcms, specifically: craft_cms. Check the affected products table above for specific version ranges.
How do I check if I'm vulnerable to CVE-2024-52291? +
You can use Secably's free Website Scanner to check your website for known vulnerabilities. For infrastructure scanning, use the Port Scanner to identify exposed services that may be affected. Check the vendor advisories linked above for specific patch and version information.

Related Vulnerabilities

Don't wait for an exploit

Scan your website for vulnerabilities like CVE-2024-52291 — free, no signup required.