Skip to content

listmonk

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

CVE-2025-49136Published 9 Jun 2025, 16:21 UTC

Real-world risk

4.2/ 10Medium

Schedule in the normal cycle

PreliminaryFrom the CVSS vector only · confidence low

CVSS

9.1

scored by the vendor (CNA), CVSS 3.1

In plain words

No plain-language summary yet. The original description is below.

Original description (from GitHub_M)

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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
listmonkNiche>= 4.0.0, < 5.0.25.0.2

What to do

Update to a fixed version: 5.0.2.

Why this score

FactorValueEvidence×
ImpactFull compromiseCode execution or full control of the system or applicationFrom the CVSS vector1.00
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededLowA real low-privileged accountFrom the CVSS vector0.60
Victim interactionRoutineA normal action: open a file, visit a page, click a linkFrom the CVSS vector0.70
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T4: Weaponized (× 1.00)

A Metasploit module, a Nuclei template, or a verified Exploit-DB entry

  • Metasploit module (link)
  • Reference tagged as exploit (link)
  • CISA SSVC: proof of concept

EPSS 1.6% chance of exploitation in 30 days (percentile 77), as of 2026-12-02.

The arithmetic
  1. Prerequisites multiplied together0.420
  2. Threat T4: Weaponized1.000
  3. 10 × impact 1 × prerequisites 0.42 × threat 14.200
  4. Rounded to one decimal between 0.1 and 104.2

How the score works

Exploitation and evidence timeline

  1. 9 Jun 2025 Published
  2. 3 Dec 2026 Metasploit module first seen
  3. 3 Dec 2026 Reference tagged as exploit first seen
  4. 3 Dec 2026 CISA SSVC: proof of concept first seen
  5. 3 Dec 2026 Risk 4.2 (cvss fallback)

Weakness

CWE-1336

References

Get alerts for listmonk

Free email or text alerts when a vulnerability in listmonk reaches risk 8 or higher. Nothing else.