Host secret disclosure via enabled Sprig functions
Published Jun 9, 2025 · Updated Jun 10, 2025
Template injection in listmonk 4.0.0 through 5.0.1 allows remote authenticated users to read host environment variables. The campaign and generic template function maps copy Sprig defaults without removing env or expandenv, so user-controlled expressions invoke them. Multi-user deployments are exposed when a non-super-admin account has campaign or template permissions, and disclosed values can include database, SMTP, cloud, or administrator credentials.
Summary
What happened
Template injection in listmonk 4.0.0 through 5.0.1 allows remote authenticated users to read host environment variables. The campaign and generic template function maps copy Sprig defaults without removing env or expandenv, so user-controlled expressions invoke them. Multi-user deployments are exposed when a non-super-admin account has campaign or template permissions, and disclosed values can include database, SMTP, cloud, or administrator credentials.
The record
- CVE
- CVE-2025-49136
- Published
- Jun 9, 2025
- Updated
- Jun 10, 2025
- Vendor
- knadh
- Product
- listmonk
- Classifications
- CWE-1336, CWE-200, T1552
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Jun 9, 2025CVE publishedPublication date reported by the CVE source.
- Jun 10, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=>= 4.0.0, < 5.0.2
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Campaign preview environment-variable proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo