Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-40871— mailcow: dockerized vulnerable to Second Order SQL Injection in quarantine category via API

Quick assessment

Affected
mailcow mailcow-dockerized
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

mailcow: dockerized是mailcow开源的一个docker化的mailcow应用软件。 mailcow: dockerized 2026-03b之前版本存在安全漏洞,该漏洞源于quarantine_category字段存在二阶SQL注入,可能导致执行任意SQL并泄露敏感数据。

CVSS 7.2 · High EPSS 0.45% · P37

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-40871

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
mailcow: dockerized vulnerable to Second Order SQL Injection in quarantine category via API
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
输入验证不恰当
Source: CVE Program / CVE List V5
Vulnerability Title
mailcow: dockerized 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
mailcow: dockerized是mailcow开源的一个docker化的mailcow应用软件。 mailcow: dockerized 2026-03b之前版本存在安全漏洞,该漏洞源于quarantine_category字段存在二阶SQL注入,可能导致执行任意SQL并泄露敏感数据。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
mailcow mailcow-dockerized < 2026-03b -

II. Public POCs for CVE-2026-40871

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-40871

请登录查看更多情报信息。

Vendor Advisories for CVE-2026-40871 (1)

Same Patch Batch · mailcow · 2026-04-21 · 6 CVEs total

CVE-2026-40875 mailcow: dockerized vulnerable to stored XSS in user login history real_rip
CVE-2026-40872 mailcow: dockerized vulnerable to stored XSS in autodiscover logs email address field
CVE-2026-40874 mailcow: dockerized missing authorization on Forwarding Hosts delete action
CVE-2026-40873 mailcow: dockerized vulnerable to stored XSS in Quarantine attachment filenames
CVE-2026-40878 mailcow-dockerized Login Page has Reflected Parameter Injection / Wrong-Context XSS Escapi

IV. Related Vulnerabilities

V. Comments for CVE-2026-40871

No comments yet


Leave a comment