Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with high-privilege listmonk account
-
DeliveryCraft malicious PostgreSQL CTE as query parameter
-
ExploitSubmit GET /api/subscribers/export with injected SQL
-
ExecutionBypass missing validateQueryTables check in ExportSubscribers
-
PersistExecute arbitrary query against PostgreSQL backend
-
ImpactExfiltrate 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:L/A:N
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.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
A security vulnerability in version 4.0.0 and (CVSS 9.0) that allows capturing of env variables. Risk factors: EPSS 41%
listmonk is a standalone, self-hosted, newsletter and mailing list manager. Rated high severity (CVSS 8.6), this vulnera
Stored XSS in Listmonk before version 6.0.0 allows authenticated users with campaign management permissions to inject ma
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
Authentication bypass in Listmonk 6.0.0 through 7.0.0-beta.1 allows anyone who already holds a valid admin password to d
Listmonk v4.1.0 (fixed in v5.0.0) is vulnerable to SQL Injection in the QuerySubscribers function which allows attackers
Missing authentication on listmonk's Azure Event Grid bounce webhook endpoint (/webhooks/service/azure) allows unauthent
Unauthenticated visitors can read unpublished Listmonk campaigns (versions 2.3.0 through 7.0.0-beta.2) through the publi
Listmonk versions 4.1.0 through 6.0.x contain authorization bypass vulnerabilities in list permission checks that allow
List-scoped Listmonk operators can overwrite subscriber records that live entirely outside their permitted lists by impo
EUVD-2026-44815
GHSA-xgjr-7j9q-2h4r
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB