Skip to content
OpenAdvisories
Critical · 9.1 Public exploit CVE-2025-49136 EUVD-2025-17462GHSA-jc7g-x28f-3v3hGO-2025-3745

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

Published Jun 9, 2025 · Updated Jun 10, 2025 · 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.

Affected products

VendorProductAffectedFixed
knadh listmonk >= 4.0.0, < 5.0.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Tumbleweed govulncheck-vulndb 0.0.20250612T141001-1.1 openSUSE-SU-2025:15225-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Metasploit 1 module

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/knadh/listmonk >= 4.0.0, < 5.0.2 5.0.2 GHSA-jc7g-x28f-3v3h
Go github.com/knadh/listmonk all versions — GO-2025-3745

Advisories 1

References