CVE-2024-58303 FoF Pretty Mail 1.1.2 Server Side Template Injection via Email Template Settings
Administrative users can execute arbitrary system commands via server-side template injection in email templates of the FoF Pretty Mail plugin.
- 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-58303?
CVE-2024-58303 is a high-severity code injection 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 server-side template injection vulnerability that allows administrative users to inject malicious code into email templates. Attackers can execute system commands by inserting crafted template expressions that trigger arbitrary code execution during email generation.
Weakness: CWE-1336
Which versions are affected by CVE-2024-58303?
2 open source packages ship an affected version, including fof/pretty-mail.
| Package | Affected | Fixed in |
|---|---|---|
fof/pretty-mail Packagist | All versions to 1.1.2 | None |
fof/pretty-mail Packagist | All versions to 1.1.2 | None |
How do I fix CVE-2024-58303?
No fix has been published for CVE-2024-58303 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2024-58303 being exploited?
There is no known exploitation of CVE-2024-58303 in the wild and no public exploit code.
Sources
Also known as GHSA-947q-2xw3-gx9c.