CVE-2026-40871

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.
Configurations

No configuration.

History

26 Oct 2026, 22:10

Type Values Removed Values Added
Summary
  • (es) mailcow: dockerized es una suite de groupware/correo electrónico de código abierto basada en docker. Las versiones anteriores a 2026-03b tienen una vulnerabilidad de inyección SQL de segundo orden en el campo quarantine_category a través de la API de Mailcow. El endpoint /api/v1/add/mailbox almacena quarantine_category sin validación ni saneamiento. Este valor es utilizado posteriormente por quarantine_notify.py, que construye consultas SQL utilizando formato de cadena % inseguro en lugar de consultas parametrizadas. Esto resulta en una inyección SQL retrasada (de segundo orden) cuando se ejecuta el trabajo de notificación de cuarentena, permitiendo a un atacante inyectar SQL arbitrario. Usando un UNION SELECT, los datos sensibles (p. ej., credenciales de administrador) pueden ser exfiltrados y renderizados dentro de los correos electrónicos de notificación de cuarentena. La versión 2026-03b corrige la vulnerabilidad.

Information

Published : 2026-04-21 20:17

Updated : 2026-10-26 22:10


NVD link : CVE-2026-40871

Mitre link : CVE-2026-40871

CVE.ORG link : CVE-2026-40871


JSON object : View

Products Affected

No product.

CWE
CWE-20

Improper Input Validation

CWE-89

Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

CWE-116

Improper Encoding or Escaping of Output

CWE-564

SQL Injection: Hibernate