CVE-2025-49136 json
listmonk's Sprig template Injection vulnerability leads to reading of Environment Variable for low privilege user
published last yr. modified last mo. also GHSA-jc7g-x28f-3v3h , GO-2025-3745 , EUVD-2025-17462
- cvss
- 9.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.6%
- EPSS 1.6% chance of exploitation in 30 days, percentile 76%
- public exploits
- 1
- Metasploit
Summary
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.
Patch / fix
- go github.com/knadh/listmonk 5.0.2
- nadh listmonk 5.0.2
- govulncheck-vulndb openSUSE Tumbleweed 0.0.20250612T141001-1.1
opensuse advisories openSUSE-SU-2025:15225-1
Is CVE-2025-49136 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerTimeline
- First public exploit (Metasploit auxiliary/gather/listmonk_env_disclosure)
- Published
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- last yr.
Exploit prediction
1.65% chance of exploitation in the next 30 days, higher than 76% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- Metasploit auxiliary/gather/listmonk_env_disclosure Listmonk Insecure Sprig Template Functions Environment Disclosure metasploit auxiliary, normal rank, 2025-06-08
- github.com https://github.com/knadh/listmonk/security/advisories/GHSA-jc7g-x28f-3v3h referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H |
| NVD | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 9.0 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/knadh/listmonk | >=4.0.0, <5.0.2 all versions |
5.0.2 |
Affected products
- knadh listmonk
Classification
- Weakness
-
- CWE-1336 Improper Neutralization of Special Elements Used in a Template Engine
References
-
github.com
/knadh/listmonk/commit/d27d2c32cf3af2d0b24e29ea5a686ba149b49b3e
web, patch
-
github.com
/knadh/listmonk/security/advisories/GHSA-jc7g-x28f-3v3h
exploit, web, vendor-advisory, advisory
-
github.com
/knadh/listmonk/releases/tag/v5.0.2
web, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2025-49136
advisory
-
github.com
/knadh/listmonk
package
Sources
- CVE List CVE-2025-49136
- GitHub Advisory GHSA-jc7g-x28f-3v3h
- NVD CVE-2025-49136
- OSV GO-2025-3745
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.