CVE-2024-52291
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/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Craftcms | Craft Cms | > 4.0.0, < 4.12.5 | — |
| Craftcms | Craft Cms | > 5.0.0, < 5.4.6 | — |
| Craftcms | Craft Cms | 4.0.0 | Rc1 |
| Craftcms | Craft Cms | 5.0.0 | Rc1 |
References
- https://github.com/craftcms/cms/security/advisories/GHSA-jrh5-vhr9-qh7qExploit, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2024-52291?
How severe is CVE-2024-52291?
How do I fix CVE-2024-52291?
Are you affected by CVE-2024-52291?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
