Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2024-58303: CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine (SSTI) in Flarum FriendsofFlarum Pretty Mail

0
High
VulnerabilityCVE-2024-58303cvecve-2024-58303cwe-1336
Published: Thu Dec 11 2025 (12/11/2025, 21:40:26 UTC)
Source: CVE Database V5
Vendor/Project: Flarum
Product: FriendsofFlarum Pretty Mail

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 03/05/2026, 13:58:50 UTC

Technical Analysis

CVE-2024-58303 identifies a server-side template injection (SSTI) vulnerability in FriendsofFlarum Pretty Mail version 1.1.2, a popular extension for the Flarum forum software. The vulnerability arises due to improper neutralization of special elements within the template engine (classified under CWE-1336), which allows administrative users to inject crafted template expressions into email templates. When these templates are processed during email generation, the malicious expressions are executed on the server, enabling arbitrary code execution. This can lead to full system compromise, including unauthorized access to sensitive data, modification or destruction of data, and potential lateral movement within the network. The vulnerability requires administrative privileges to exploit, meaning that an attacker must already have elevated access to the forum's backend. No user interaction is required beyond the attacker submitting the malicious template code. The CVSS 4.0 base score is 8.6, indicating a high severity due to the vulnerability's impact on confidentiality, integrity, and availability, combined with its ease of exploitation by privileged users. Currently, there are no known public exploits or patches available, increasing the urgency for organizations to implement interim mitigations. The flaw affects only version 1.1.2 of FriendsofFlarum Pretty Mail, and it is critical for administrators to monitor for updates from the vendor. The vulnerability's root cause is the failure to properly sanitize or neutralize template expressions, allowing execution of arbitrary system commands during email rendering.

Potential Impact

The impact of CVE-2024-58303 is significant for organizations using Flarum forums with the FriendsofFlarum Pretty Mail extension. Successful exploitation can lead to arbitrary code execution on the server, resulting in full system compromise. This includes unauthorized access to sensitive user data, modification or deletion of forum content, and potential disruption of email services. Attackers with administrative access could leverage this vulnerability to escalate privileges further or pivot to other internal systems, increasing the risk of widespread damage. The vulnerability undermines the confidentiality, integrity, and availability of affected systems. Given that email templates are processed automatically, exploitation can be stealthy and persistent. Organizations relying on these forums for community engagement or customer support may face reputational damage and operational disruptions. The lack of patches and known exploits in the wild means organizations must proactively mitigate risk to prevent potential future attacks.

Mitigation Recommendations

1. Restrict administrative access to the Flarum forum backend to trusted personnel only, employing strong authentication mechanisms such as multi-factor authentication (MFA). 2. Audit and monitor all changes to email templates, ensuring that only safe, verified content is used. 3. Implement strict input validation and sanitization on template inputs to prevent injection of malicious expressions. 4. Isolate the email generation process in a sandboxed environment with minimal privileges to limit the impact of potential code execution. 5. Regularly monitor logs for unusual template rendering activity or command execution attempts. 6. Stay informed about vendor updates and apply patches immediately once released. 7. Consider disabling or temporarily removing the Pretty Mail extension if administrative access cannot be sufficiently secured. 8. Conduct security awareness training for administrators on the risks of template injection vulnerabilities. 9. Employ network segmentation to limit access to the forum server from untrusted networks. 10. Use application-level firewalls or runtime application self-protection (RASP) tools to detect and block suspicious template injection attempts.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulnCheck
Date Reserved
2025-12-11T11:49:20.718Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 693b3df322246175c6a47135

Added to database: 12/11/2025, 9:56:03 PM

Last enriched: 3/5/2026, 1:58:50 PM

Last updated: 3/26/2026, 10:27:53 AM

Views: 110

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses