# CVE-2025-49136: listmonk's Sprig template Injection vulnerability leads to reading of Environment Variable for low privilege user

- Severity: Critical 9.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- 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.65%, higher than 77% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-06-09T13:09:24.000Z
- Modified: 2026-09-10T03:50:57.834Z
- Also known as: GHSA-jc7g-x28f-3v3h, GO-2025-3745
- Weaknesses: CWE-1336
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- knadh listmonk: >= 4.0.0, < 5.0.2
- github.com/knadh/listmonk (Go): from 4.0.0 before 5.0.2; all versions
- nadh listmonk: from 4.0.0 before 5.0.2

## Every score

- GitHub_M: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/knadh/listmonk/security/advisories/GHSA-jc7g-x28f-3v3h> (exploit, advisory, vendor-advisory, web)
- <https://github.com/knadh/listmonk/commit/d27d2c32cf3af2d0b24e29ea5a686ba149b49b3e> (fix, patch, web)
- <https://github.com/knadh/listmonk/releases/tag/v5.0.2> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-49136> (advisory)
- <https://github.com/knadh/listmonk> (package)

## Sources

- CVE List: [CVE-2025-49136](https://www.cve.org/CVERecord?id=CVE-2025-49136), CVE Terms of Use, modified 2025-06-10
- GitHub Advisory Database: [GHSA-jc7g-x28f-3v3h](https://github.com/advisories/GHSA-jc7g-x28f-3v3h), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2025-3745](https://pkg.go.dev/vuln/GO-2025-3745), CC-BY-4.0, modified 2025-06-10
- NVD: [CVE-2025-49136](https://nvd.nist.gov/vuln/detail/CVE-2025-49136), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-49136 · Whole record: https://cve.day/CVE-2025-49136.json · Rebuilt by cve.day 2026-11-25T22:58:58.967Z
