Vulnerability · Published Nov 13, 2024 · Assigned by GitHub_M

CVE-2024-52292Craft Allows Attackers to Read Arbitrary System Files

High 7.7

In plain English

A high-severity path traversal in cms from craftcms. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 55% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.7High
Exploit odds (30 days)0.7%top 45.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

Craft is a content management system (CMS). The dataUrl function can be exploited if an attacker has write permissions on system notification templates. This function accepts an absolute file path, reads the file's content, and converts it into a Base64-encoded string. By embedding this function within a system notification template, the attacker can exfiltrate the Base64-encoded file content through a triggered system email notification. Once the email is received, the Base64 payload can be decoded, allowing the attacker to read arbitrary files on the server. This is fixed in 5.4.9 and 4.12.8.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Packagistcraftcms/cms5.4.9GHSA-cw6g-qmjq-6w2w
Packagistcraftcms/cms4.12.8GHSA-cw6g-qmjq-6w2w

Affected products (as reported)

VendorProductVersions
craftcms cms >= 5.0.0-alpha.1, < 5.4.9>= 3.5.13, < 4.12.8

Weakness: CWE-552, CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N

References