Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. fof/pretty-mail
  4. ›
  5. CVE-2024-58303

CVE-2024-58303: FoF Pretty Mail has a server-side template injection vulnerability

December 12, 2025

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.

References

  • flarum.org/
  • github.com/FriendsOfFlarum/pretty-mail
  • github.com/advisories/GHSA-947q-2xw3-gx9c
  • nvd.nist.gov/vuln/detail/CVE-2024-58303
  • www.exploit-db.com/exploits/51948
  • www.vulncheck.com/advisories/fof-pretty-mail-server-side-template-injection-via-email-template-settings

Code Behaviors & Features

Detect and mitigate CVE-2024-58303 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 1.1.2

Solution

Unfortunately, there is no solution available yet.

Impact 7.2 HIGH

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine

Source file

packagist/fof/pretty-mail/CVE-2024-58303.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 14 Dec 2025 00:20:01 +0000.