Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

CVE-2026-40871 Details

ANALYZED


This CVE record has been analyzed and enriched by NVDAPI.com as an independent party.

Description

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.

Metrics

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.

Weakness Enumeration

CWE-IDCWE NameSource
CWE-116Improper Encoding or Escaping of Output[email protected]
CWE-20Improper Input Validation[email protected]
CWE-564SQL Injection: Hibernate[email protected]
CWE-89Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')[email protected]

Affected Products

ProductVersions
mailcow: dockerized
< 2026-03b

CPE

  • cpe:2.3:a:mailcow:mailcow:_dockerized:*:*:*:*:*:*:*:*

Remediation

  • Upgrade: 2026-03bmoderate effort

Change History

5 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2026-40871
NVD Published Date:
Apr 21, 2026
NVD Last Modified:
Oct 26, 2026
Source:
[email protected]
CVE-2026-40871 Details - Not Deferred