Skip to main content

listmonk CVE-2026-62361

| EUVDEUVD-2026-44815 MEDIUM
SQL Injection (CWE-89)
2026-07-15 GitHub_M GHSA-xgjr-7j9q-2h4r
5.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate with high-privilege listmonk account
  2. Delivery
    Craft malicious PostgreSQL CTE as query parameter
  3. Exploit
    Submit GET /api/subscribers/export with injected SQL
  4. Execution
    Bypass missing validateQueryTables check in ExportSubscribers
  5. Persist
    Execute arbitrary query against PostgreSQL backend
  6. Impact
    Exfiltrate users/settings tables or write data via CTE DML

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires an active authenticated session in listmonk with both the subscribers:sql_query permission (which enables custom SQL expressions in subscriber filtering) and the subscribers:get_all permission (which enables access to the export endpoint). These are elevated, non-default role permissions that must be explicitly granted by an administrator. The target instance must be running a listmonk version prior to 6.2.0 and the GET /api/subscribers/export endpoint must be network-reachable by the attacker. No special server-side configuration beyond standard listmonk deployment is required for the vulnerable code path to be active. Exploitation is limited to accounts that have been granted sql_query privileges - accounts without this permission cannot supply arbitrary SQL expressions regardless of other roles assigned.

Impact

The provided CVSS 3.1 vector AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:L/A:N accurately characterises the attack profile. High privileges (PR:H) are required - specifically the conjunction of two listmonk role permissions (subscribers:sql_query and subscribers:get_all) - which substantially constrains the realistic attacker population to trusted insiders, compromised admin accounts, or privilege-escalated sessions. Confidentiality impact is High because the users and settings tables, which likely contain hashed passwords, API keys, and SMTP credentials, are fully readable. Integrity impact is Low because PostgreSQL CTEs permit DML execution, but the scope is confined to the same database instance (S:U). No EPSS score was supplied in the input data, so exploitation probability cannot be quantified numerically; the high privilege prerequisite implies real-world exploitation likelihood is materially lower than the network-accessible vector alone might suggest. There is no CISA KEV listing and no public exploit code has been identified, making this a patch-priority issue for any deployment that grants sql_query permissions rather than an emergency response item. The primary realistic threat is a malicious or compromised privileged user performing lateral privilege escalation to full database access.

Exploit ScenarioDerived

An authenticated listmonk user who holds both subscribers:sql_query and subscribers:get_all permissions submits a crafted SQL expression - for example, a WITH cte AS (SELECT * FROM users) SELECT * FROM cte - as the query parameter to GET /api/subscribers/export. Because ExportSubscribers omits the validateQueryTables call, the injected expression is executed directly against the PostgreSQL backend, returning the full contents of the users table including hashed passwords and API tokens. The attacker then uses recovered credentials to escalate to full administrative control of the listmonk instance or connected systems.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 15, 2026

SQL injection in listmonk's subscriber export endpoint prior to version 6.2.0 allows a highly-privileged authenticated user to read arbitrary PostgreSQL database tables - including users and settings - and execute data-modifying CTEs. The GET /api/subscribers/export endpoint passed a user-controlled query parameter directly into QuerySubscribersForExport in internal/core/subscribers.go without invoking the validateQueryTables guard that the sibling GET /api/subscribers endpoint correctly applies, creating a bypass of the allowlist-based table restriction. Exploitation requires possession of both the subscribers:sql_query and subscribers:get_all permissions; no public exploit code has been identified at time of analysis.

RemediationAI

Upgrade listmonk to version 6.2.0 or later, which resolves the vulnerability via the fix in commit c0a6525009a65265230185f16e8674dcc83aa024; the release is available at https://github.com/knadh/listmonk/releases/tag/v6.2.0 and the advisory is at https://github.com/knadh/listmonk/security/advisories/GHSA-xgjr-7j9q-2h4r. For deployments that cannot immediately upgrade, the most effective compensating control is revoking the subscribers:sql_query permission from all non-essential accounts, since this permission is a mandatory prerequisite for exploitation; the trade-off is that custom SQL filtering features will be unavailable to those accounts. Alternatively, a reverse proxy rule blocking or restricting access to GET /api/subscribers/export at the network perimeter can prevent exploitation without affecting other API functions, at the cost of disabling subscriber export for all users. Neither workaround eliminates the underlying flaw and both should be treated as temporary bridges to the v6.2.0 upgrade.

Affected VersionsENISA

listmonk < 6.2.0

Affected Packages

go github.com/knadh/listmonk fix: 1.1.1-0.20260619102436-c0a6525009a6
euvd listmonk fix: 6.2.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

listmonk is a self-hosted Go-based newsletter and mailing list manager backed by PostgreSQL (CPE: cpe:2.3:a:knadh:listmonk:*:*:*:*:*:*:*:*). The flaw falls under CWE-89 (SQL Injection): the application's ExportSubscribers function in internal/core/subscribers.go accepted a user-supplied SQL expression and injected it into a PostgreSQL query without first calling validateQueryTables, which uses EXPLAIN (FORMAT JSON) to inspect the query plan and enforce an allowlist of permitted tables (subscribers, lists, subscriber_lists, campaigns, campaign_lists, campaign_views, links, link_clicks, bounces). The fix in commit c0a6525009a65265230185f16e8674dcc83aa024 inserts the missing validateQueryTables call into ExportSubscribers and simultaneously corrects the function's signature to pass bound query arguments into the EXPLAIN validation, preventing the guard from running against incorrect parameters. Because PostgreSQL supports data-modifying CTEs (WITH ... AS INSERT/UPDATE/DELETE), the injection surface allows not just data reads but also writes, making the Integrity impact concrete despite the endpoint's read-oriented purpose.

Know when Listmonk gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 5.5 MEDIUM
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:L/A:N
vuln.today AI 5.5 MEDIUM

Endpoint is network-reachable but requires two specific high-privilege permissions (PR:H); arbitrary table reads yield full confidentiality loss; CTE-based DML enables partial writes (I:L); no availability impact described.

3.1 AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
None

Lifecycle Timeline

1
Patch available
Jul 15, 2026 - 22:33 EUVD

DescriptionCVE.org

listmonk is a standalone, self-hosted, newsletter and mailing list manager. Prior to 6.2.0, listmonk’s GET /api/subscribers/export endpoint injects the user-controlled query parameter into QuerySubscribersForExport in internal/core/subscribers.go without calling validateQueryTables, unlike GET /api/subscribers, allowing an authenticated user with subscribers:sql_query and subscribers:get_all to read arbitrary database tables such as users and settings and execute data-modifying PostgreSQL CTEs. This issue is fixed in version 6.2.0.

Threat Intelligence Overview

EPSS Score
0.2%
Top 85% exploitable
Prevalence
Low
niche self-hosted newsletter tool, limited enterprise footprint
Threat Intel
1
1 sources
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

CVE-2025-49136 CRITICAL POC
9.0 Jun 09

A security vulnerability in version 4.0.0 and (CVSS 9.0) that allows capturing of env variables. Risk factors: EPSS 41%

CVE-2025-58430 HIGH POC
8.6 Sep 09

listmonk is a standalone, self-hosted, newsletter and mailing list manager. Rated high severity (CVSS 8.6), this vulnera

CVE-2026-21483 MEDIUM POC
5.4 Jan 02

Stored XSS in Listmonk before version 6.0.0 allows authenticated users with campaign management permissions to inject ma

CVE-2026-128333 CRITICAL
9.1 Nov 13

Authentication bypass in listmonk 6.0.0 through 7.0.0-beta.1 lets anyone who can complete a password reset for a 2FA-pro

CVE-2026-128332 CRITICAL
9.1 Nov 13

Authentication bypass in Listmonk 6.0.0 through 7.0.0-beta.1 allows anyone who already holds a valid admin password to d

CVE-2025-46011 MEDIUM
6.5 Jun 04

Listmonk v4.1.0 (fixed in v5.0.0) is vulnerable to SQL Injection in the QuerySubscribers function which allows attackers

CVE-2026-128334 MEDIUM
6.3 Nov 13

Missing authentication on listmonk's Azure Event Grid bounce webhook endpoint (/webhooks/service/azure) allows unauthent

CVE-2026-138261 MEDIUM
6.3 Nov 28

Unauthenticated visitors can read unpublished Listmonk campaigns (versions 2.3.0 through 7.0.0-beta.2) through the publi

CVE-2026-34584 MEDIUM
5.4 Apr 02

Listmonk versions 4.1.0 through 6.0.x contain authorization bypass vulnerabilities in list permission checks that allow

CVE-2026-137575 MEDIUM
5.3 Nov 26

List-scoped Listmonk operators can overwrite subscriber records that live entirely outside their permitted lists by impo

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy