CVE-2024-58302 FoF Pretty Mail 1.1.2 Local File Inclusion via Email Template Settings
Administrative users can exploit local file inclusion in email templates to read sensitive server files, requiring an upgrade to the Flarum extension.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-58302?
CVE-2024-58302 is a medium-severity path traversal vulnerability in FriendsofFlarum Pretty Mail, published on 11 Dec 2025. An attacker needs administrator access to exploit it, with no action from the victim.
Official description
FoF Pretty Mail 1.1.2 contains a local file inclusion vulnerability that allows administrative users to include arbitrary server files in email templates. Attackers can exploit the template settings by inserting file inclusion payloads to read sensitive system files like /etc/passwd during email generation.
Weakness: CWE-98
Which versions are affected by CVE-2024-58302?
How do I fix CVE-2024-58302?
No fix has been published for CVE-2024-58302 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2024-58302 being exploited?
There is no known exploitation of CVE-2024-58302 in the wild and no public exploit code.
Sources
Also known as GHSA-54q9-c4j4-jf82.