CVE-2024-52291

HIGHCVSS 7.2/10EPSS 1.14%

Last modified

CVE-2024-52291 is a high-severity vulnerability rated 7.2/10 on the CVSS scale. 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:////). EPSS estimates a 1.14% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
7.2/10

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

EPSS Probability
1.14%

62.5th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersionsUpdate
CraftcmsCraft Cms> 4.0.0, < 4.12.5
CraftcmsCraft Cms> 5.0.0, < 5.4.6
CraftcmsCraft Cms4.0.0Rc1
CraftcmsCraft Cms5.0.0Rc1

References

Timeline

Published
Last Modified
Status
Analyzed

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.
How severe is CVE-2024-52291?
CVE-2024-52291 has a CVSS score of 7.2/10 (HIGH severity). The EPSS model estimates a 1.14% probability of exploitation in the next 30 days.
How do I fix CVE-2024-52291?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2024-52291?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST