CVE-2026-40871: CWE-20: Improper Input Validation in mailcow mailcow-dockerized
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.
AI Analysis
Technical Summary
mailcow-dockerized before version 2026-03b suffers from a second-order SQL injection vulnerability due to improper input validation and unsafe string formatting in SQL queries. The quarantine_category field is accepted without sanitization via the API and later used unsafely in quarantine_notify.py, enabling attackers to inject arbitrary SQL commands. Exploitation can result in disclosure of sensitive information by injecting UNION SELECT statements that appear in notification emails. The vulnerability has a CVSS 3.1 score of 7.2, indicating high severity.
Potential Impact
Successful exploitation allows an attacker with high privileges to inject arbitrary SQL commands into the mailcow database during the quarantine notification process. This can lead to disclosure of sensitive data, including administrative credentials, through crafted quarantine notification emails. The vulnerability affects confidentiality, integrity, and availability as indicated by the CVSS vector. There are no known exploits in the wild as of the published date.
Mitigation Recommendations
Upgrade mailcow-dockerized to version 2026-03b or later, where this vulnerability is fixed. Since the vendor advisory or patch links are not explicitly provided, verify the upgrade from official mailcow sources. Patch status is not explicitly confirmed in the provided data, but the description states version 2026-03b fixes the issue. No alternative mitigations are indicated.
CVE-2026-40871: CWE-20: Improper Input Validation in mailcow mailcow-dockerized
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
mailcow-dockerized before version 2026-03b suffers from a second-order SQL injection vulnerability due to improper input validation and unsafe string formatting in SQL queries. The quarantine_category field is accepted without sanitization via the API and later used unsafely in quarantine_notify.py, enabling attackers to inject arbitrary SQL commands. Exploitation can result in disclosure of sensitive information by injecting UNION SELECT statements that appear in notification emails. The vulnerability has a CVSS 3.1 score of 7.2, indicating high severity.
Potential Impact
Successful exploitation allows an attacker with high privileges to inject arbitrary SQL commands into the mailcow database during the quarantine notification process. This can lead to disclosure of sensitive data, including administrative credentials, through crafted quarantine notification emails. The vulnerability affects confidentiality, integrity, and availability as indicated by the CVSS vector. There are no known exploits in the wild as of the published date.
Mitigation Recommendations
Upgrade mailcow-dockerized to version 2026-03b or later, where this vulnerability is fixed. Since the vendor advisory or patch links are not explicitly provided, verify the upgrade from official mailcow sources. Patch status is not explicitly confirmed in the provided data, but the description states version 2026-03b fixes the issue. No alternative mitigations are indicated.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-15T15:57:41.718Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69e7d08919fe3cd2cdf3fb13
Added to database: 4/21/2026, 7:31:21 PM
Last enriched: 4/21/2026, 7:46:54 PM
Last updated: 4/22/2026, 6:07:12 AM
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.