Arbitrary file read via notification template dataUrl
Published Nov 13, 2024 · Updated Nov 13, 2024
Arbitrary file read in Craft CMS 3.5.13 through 4.12.6.1 and 5.0.0-alpha.1 through 5.4.7.1 allows remote authenticated users to read server files. The Twig dataUrl function accepts an absolute path in a system notification template, reads the referenced file, and Base64-encodes its contents into the generated email. Exploitation requires write permission to system notification templates, the ability to trigger the matching email, and access to the delivered message.
Summary
What happened
Arbitrary file read in Craft CMS 3.5.13 through 4.12.6.1 and 5.0.0-alpha.1 through 5.4.7.1 allows remote authenticated users to read server files. The Twig dataUrl function accepts an absolute path in a system notification template, reads the referenced file, and Base64-encodes its contents into the generated email. Exploitation requires write permission to system notification templates, the ability to trigger the matching email, and access to the delivered message.
The record
- CVE
- CVE-2024-52292
- Published
- Nov 13, 2024
- Updated
- Nov 13, 2024
- Vendor
- Pixel & Tonic
- Product
- Craft CMS
- Classifications
- CWE-22, CWE-552, T1005
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Nov 13, 2024CVE publishedPublication date reported by the CVE source.
- Nov 13, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <=3.5.13
- Affected versionversion=0 <4.12.8
- Affected versionversion=0 <=5.0.0-alpha.1
- Affected versionversion=0 <5.4.9
- Affected versionversion=>= 3.5.13, < 4.12.8
- Affected versionversion=>= 5.0.0-alpha.1, < 5.4.9
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Maintainer notification-template proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo