Rapid7

module

Listmonk Insecure Sprig Template Functions Environment Disclosure

Disclosed
Jun 8, 2025
Created
Oct 9, 2025

Description

This module exploits insecure Sprig template functions in Listmonk
versions prior to v5.0.2. The env and expandenv functions are enabled
by default, allowing authenticated users with campaign permissions to
extract sensitive environment variables via campaign preview.

Author

Tarek Nakkouch

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':


msf > use auxiliary/gather/listmonk_env_disclosure
msf auxiliary(listmonk_env_disclosure) > show actions
...actions...
msf auxiliary(listmonk_env_disclosure) > set ACTION < action-name >
msf auxiliary(listmonk_env_disclosure) > show options
...show and set options...
msf auxiliary(listmonk_env_disclosure) > run

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.