CVE-2025-49136

listmonk's Sprig template Injection vulnerability leads to reading of Environment Variable for low privilege user

Published Jun 9, 2025 CVSS 3.1 · 9.1 Critical EPSS 1.6% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-17462 listmonk's Sprig template Injection vulnerability leads to reading of Environment Variable for low privilege user
Github GHSA Github GHSA GHSA-jc7g-x28f-3v3h listmonk's Sprig template Injection vulnerability leads to reading of Environment Variable for low privilege user
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00037}

epss

{'score': 0.00031}

Type Values Removed Values Added
First Time appeared Nadh
Nadh listmonk
Weaknesses NVD-CWE-noinfo
CPEs cpe:2.3:a:nadh:listmonk:*:*:*:*:*:*:*:*
Vendors & Products Nadh
Nadh listmonk
Type Values Removed Values Added
Metrics epss

{'score': 0.00032}

epss

{'score': 0.00037}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title listmonk's Sprig template Injection vulnerability leads to reading of Environment Variable for low privilege user
Weaknesses CWE-1336
References
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H'}

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jun 10, 2025, 1:25 PM
Reserved
Jun 2, 2025, 10:39 AM
Status
Analyzed
Published
Jun 9, 2025, 5:15 PM
Modified
Jun 17, 2026, 9:30 AM