CVE-2025-49136: listmonk's Sprig template Injection vulnerability leads to reading of Environment Variable for low privilege user
Vulnerability summary
CVE-2025-49136 is a critical (CVSS 9.1) vulnerability in knadh listmonk. EPSS estimates a 1.58% chance of exploitation in the next 30 days, higher than 75.5% of scored vulnerabilities. 2 public exploits are recorded.
Weaponized exploit (Metasploit, 08-06-2025)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 09-06-2025PublishedVulnerability first disclosed.
- 10-06-2025Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · GoEcosystem advisory · calculated9.0CriticalCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:HDiffers
- NVDNIST6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:NDiffers
EPSS trend
Probability
1.58%
Chance of exploitation in the next 30 days
Percentile
76%
Versus all other CVEs
30-day change
Increase +0.04 pp
From 1.54% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
2 foundListmonk
Maturity: poc
Listmonk Insecure Sprig Template Functions Environment Disclosure
auxiliary/gather/listmonk_env_disclosure
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.
Github.com/knadh1 product
- listmonk≥ 4.0.0, < 5.0.2 | All versions (No fix recorded)
Knadh1 product
- listmonk≥ 4.0.0, < 5.0.2
Nadh1 product
- listmonk≥ 4.0.0, < 5.0.2
3 vendors · 3 products
References
5 links- github.com/knadh/listmonk/security/advisories/GHSA-jc7g-x28f-3v3hX Refsource CONFIRMWEBAdvisoryExploitVendor Advisory
- github.com/knadh/listmonk/commit/d27d2c32cf3af2d0b24e29ea5a686ba149b49b3eX Refsource MISCWEBFIXPatch
- github.com/knadh/listmonkPACKAGE