CVE-2025-49136 Details
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.
A critical template injection vulnerability has been identified in Listmonk, a self-hosted newsletter and mailing list manager. This issue affects versions 4.0.0 prior to 5.0.2. The vulnerability arises from the default inclusion of the 'env' and 'expandenv' template functions from the Sprig library, which allow access to environment variables on the host. In multi-user installations, this enables non-super-admin users with campaign or template permissions to capture sensitive environment data, such as database credentials and SMTP passwords, by using the '{{ env }}' template expression. The vulnerability is particularly concerning in the campaign preview functionality, where affected users can execute template content that accesses environment variables, leading to potential exposure of critical system data.
Users are advised to upgrade to Listmonk version 5.0.2, which removes the 'env' and 'expandenv' functions from the Sprig template library, preventing access to environment variables from within templates. Instructions for upgrading are available on the Listmonk GitHub release page.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 10, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/knadh/listmonk/security/advisories/GHSA-jc7g-x28f-3v3h | CISA-ADP | ExploitVendor Advisory |
| https://github.com/knadh/listmonk/commit/d27d2c32cf3af2d0b24e29ea5a686ba149b49b3e | [email protected] | Patch |
| https://github.com/knadh/listmonk/releases/tag/v5.0.2 | [email protected] | Release Notes |
| https://github.com/knadh/listmonk/security/advisories/GHSA-jc7g-x28f-3v3h | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| NVD-CWE-noinfo | Insufficient Information to Classify Weakness | [email protected] |
| CWE-1336 | Improper Neutralization of Special Elements Used in a Template Engine | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| nadh listmonk | >= 4.0.0, < 5.0.2 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jul 11, 2025 | Initial Analysis | [email protected] |
| Jun 10, 2025 | CVE Modified | CISA-ADP |
| Jun 9, 2025 | New CVE Received | [email protected] |