# CVE-2024-58303: FoF Pretty Mail 1.1.2 Server Side Template Injection via Email Template Settings

- Severity: High 8.6 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.78%, higher than 78% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-12-11T21:40:26.839Z
- Modified: 2026-10-08T16:16:49.313Z
- Also known as: GHSA-947q-2xw3-gx9c
- Weaknesses: CWE-1336
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- Flarum FriendsofFlarum Pretty Mail: 1.1.2
- fof/pretty-mail (Packagist): up to 1.1.2

## Every score

- VulnCheck: CVSS:4.0 8.6 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`

## References

- <https://www.exploit-db.com/exploits/51948> (exploit, web)
- <https://flarum.org/> (product)
- <https://github.com/FriendsOfFlarum/pretty-mail> (package, product)
- <https://www.vulncheck.com/advisories/fof-pretty-mail-server-side-template-injection-via-email-template-settings> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-58303> (advisory)
- <https://flarum.org> (web)

## Sources

- CVE List: [CVE-2024-58303](https://www.cve.org/CVERecord?id=CVE-2024-58303), CVE Terms of Use, modified 2026-10-08
- GitHub Advisory Database: [GHSA-947q-2xw3-gx9c](https://github.com/advisories/GHSA-947q-2xw3-gx9c), CC-BY-4.0, modified 2025-12-12
- NVD: [CVE-2024-58303](https://nvd.nist.gov/vuln/detail/CVE-2024-58303), Public domain, modified 2026-10-08

---

Page: https://cve.day/CVE-2024-58303 · Whole record: https://cve.day/CVE-2024-58303.json · Rebuilt by cve.day 2026-11-25T22:58:52.939Z
