CVE-2026-40871

HIGH CVSS 3.1: 7.2 EPSS 8.89%
Updated Oct 27, 2026
Docker
Parameter Value
CVSS 7.2 (HIGH)
Affected Versions before 2026
Type CWE-20 (Improper Input Validation), CWE-564, CWE-116 (Improper Encoding or Escaping of Output), CWE-89 (SQL Injection)
Vendor Docker
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
High
Admin privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v3.1