Severity by source
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Lifecycle Timeline
7DescriptionGitHub Advisory
mailcow: dockerized is an open source groupware/email suite based on docker. Versions prior to 2026-03b have a second-order SQL injection vulnerability in the quarantine_category field via the Mailcow API. The /api/v1/add/mailbox endpoint stores quarantine_category without validation or sanitization. This value is later used by quarantine_notify.py, which constructs SQL queries using unsafe % string formatting instead of parameterized queries. This results in a delayed (second-order) SQL injection when the quarantine notification job executes, allowing an attacker to inject arbitrary SQL. Using a UNION SELECT, sensitive data (e.g., admin credentials) can be exfiltrated and rendered inside quarantine notification emails. Version 2026-03b fixes the vulnerability.
AnalysisAI
Second-order SQL injection in mailcow: dockerized versions prior to 2026-03b allows authenticated API users with high privileges to execute arbitrary SQL commands through the quarantine notification system. Attackers inject malicious SQL via the quarantine_category field in /api/v1/add/mailbox endpoint, which executes when quarantine_notify.py runs its scheduled job, enabling data exfiltration of admin credentials and sensitive information through UNION-based queries rendered in notification emails. No public exploit code or active exploitation confirmed at time of analysis, with vendor patch available in version 2026-03b.
Technical ContextAI
This vulnerability affects mailcow: dockerized (cpe:2.3:a:mailcow:mailcow-dockerized), a containerized open-source groupware and email suite. The flaw stems from CWE-20 (Improper Input Validation) manifesting as a second-order SQL injection. Unlike traditional SQL injection where malicious input is immediately executed, second-order SQL injection occurs when untrusted data is stored in the database and later retrieved and used in dynamically constructed SQL queries. The vulnerable code path involves the Mailcow API's /api/v1/add/mailbox endpoint accepting quarantine_category values without validation or parameterization, storing them directly. Subsequently, the quarantine_notify.py script retrieves these values and incorporates them into SQL queries using Python's unsafe % string formatting (string interpolation) rather than parameterized queries or prepared statements. When the scheduled quarantine notification job executes, the stored malicious SQL payload is injected into the query context, enabling UNION SELECT operations that can extract arbitrary data from the database and embed it in outgoing email notifications.
RemediationAI
Upgrade immediately to mailcow: dockerized version 2026-03b or later, which addresses the SQL injection vulnerability by implementing proper input validation and parameterized queries in the quarantine notification system. Follow the vendor security advisory at https://github.com/mailcow/mailcow-dockerized/security/advisories/GHSA-r8fq-wrfm-cj2q for upgrade procedures specific to containerized deployments. As compensating controls until patching is complete, implement strict API access controls by auditing and restricting high-privilege API credentials to only essential service accounts, enable comprehensive API request logging for the /api/v1/add/mailbox endpoint to detect suspicious quarantine_category values, and review existing mailbox configurations for anomalous quarantine_category entries that may contain SQL injection payloads (look for SQL keywords like UNION, SELECT, or special characters in stored values). Consider temporarily disabling automated quarantine notifications via quarantine_notify.py if immediate patching is not feasible, though this will impact legitimate quarantine management workflows. After upgrading, rotate all administrative and API credentials as a precautionary measure given the credential exfiltration capabilities of this vulnerability.
An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl
runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac
Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post
Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build
Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l
Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c
Vasion Print (formerly PrinterLogic) Virtual Appliance Host prior to version 25.2.169 and Application prior to version 2
An issue in Plone Docker Official Image 5.2.13 (5221) open-source software that could allow for remote code execution du
Tandoor Recipes is an application for managing recipes, planning meals, and building shopping lists. Rated critical seve
Unauthenticated remote code execution in 9router (npm package) versions 0.4.30 through 0.4.36 allows network-adjacent at
Same weakness CWE-20 – Improper Input Validation
View allSame technique Information Disclosure
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-24253