patchminder
Weaponized · Metasploit CVE-2025-49136

Vulnerabilityin knadh listmonk.

Published 9 Jun 2025 · Updated 10 Jun 2025 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Weaponized: a Metasploit exploit is public.

Attack code is public
Severity
Critical 9.1
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1
Attack likelihood
Moderate
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 1.6% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 5.0.2 or later
In plain words

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.

What to do now
  • Upgrade listmonk to 5.0.2 or later.
  • Upgrade github.com/knadh/listmonk (Go) to 5.0.2 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
listmonk
4.0.0 to before 5.0.2
5.0.2
CVE record
github.com/knadh/listmonk (Go)
4.0.0 to before 5.0.2
5.0.2
GitHub advisory
github.com/knadh/listmonk (Go)
all versions
Not confirmed
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 2 Jun 2025
    CVE ID reserved by GitHub_M.
  2. 8 Jun 2025
    Metasploit module: Listmonk Insecure Sprig Template Functions Environment Disclosure.
  3. 9 Jun 2025
    Published in the CVE List.
  4. 10 Jun 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Weaponized (Metasploit). CISA assessment (SSVC): exploitation poc.

Metasploit module
1 module
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
None known

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other listmonk vulnerabilities

Same weakness: Template injection

All CWE-1336 vulnerabilities

References
Cite this page

Patchminder. CVE-2025-49136: Vulnerability in knadh listmonk. https://patchminder.com/cve/cve-2025-49136/ (accessed 5 December 2026).