listmonk's Sprig template Injection vulnerability leads to reading of Environment Variable for low privilege user
CVE-2025-49136Published 9 Jun 2025, 16:21 UTC
Real-world risk
4.2/ 10Medium
Schedule in the normal cycle
PreliminaryFrom the CVSS vector only · confidence low
CVSS
9.1
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
listmonk is a standalone, self-hosted, newsletter and mailing list manager. Starting in version 4.0.0 and prior to version 5.0.2, the `env` and `expandenv` template functions which is enabled by default in Sprig enables capturing of env variables on host. While this may not be a problem on single-user (super admin) installations, on multi-user installations, this allows non-super-admin users with campaign or template permissions to use the `{{ env }}` template expression to capture sensitive environment variables. Users should upgrade to v5.0.2 to mitigate the issue.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| listmonkNiche | >= 4.0.0, < 5.0.2 | 5.0.2 |
What to do
Update to a fixed version: 5.0.2.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Full compromiseCode execution or full control of the system or application | From the CVSS vector | 1.00 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | LowA real low-privileged account | From the CVSS vector | 0.60 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T4: Weaponized (× 1.00)
A Metasploit module, a Nuclei template, or a verified Exploit-DB entry
EPSS 1.6% chance of exploitation in 30 days (percentile 77), as of 2026-12-02.
The arithmetic
- Prerequisites multiplied together0.420
- Threat T4: Weaponized1.000
- 10 × impact 1 × prerequisites 0.42 × threat 14.200
- Rounded to one decimal between 0.1 and 104.2
Exploitation and evidence timeline
- 9 Jun 2025 Published
- 3 Dec 2026 Metasploit module first seen
- 3 Dec 2026 Reference tagged as exploit first seen
- 3 Dec 2026 CISA SSVC: proof of concept first seen
- 3 Dec 2026 Risk 4.2 (cvss fallback)
Weakness
CWE-1336