GHSA-5835-4gvc-32pc · Severity: high · Ecosystem: go — Maddy Mail Server has an LDAP Filter Injection via Unsanitized Username
maddy is a composable, all-in-one mail server. Versions prior to 0.9.3 contain an LDAP injection vulnerability in the auth.ldap module where user-supplied usernames are interpolated into LDAP search filters and DN strings via strings.ReplaceAll() without any LDAP filter escaping, despite the go-ldap/ldap/v3 library's ldap.EscapeFilter() function being available in the same import. This affects three code paths: the Lookup() filter, the AuthPlain() DN template, and the AuthPlain() filter. An attacker with network access to the SMTP submission or IMAP interface can inject arbitrary LDAP filter expressions through the username field in AUTH PLAIN or LOGIN commands. This enables identity spoofing by manipulating filter results to authenticate as another user, LDAP directory enumeration via wildcard filters, and blind extraction of LDAP attribute values using authentication responses as a boolean oracle or via timing side-channels between the two distinct failure paths. This issue has been fixed in version 0.9.3.
Conclusion & alert: CVE-2026-40193 is rated Exploit Available (54/100): CVSS High severity, with low exploitation likelihood (EPSS 0.06%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-05-27 | 0.03% | 0.06% | +0.02% |
| 2 | 2026-04-21 | 0.06% | 0.03% | -0.03% |
| 3 | 2026-04-16 | — | 0.06% | — |
Full EPSS history (3 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 8.2 | 3.1 | HIGH |
|
3.9 | 4.2 | [email protected] |
GHSA-5835-4gvc-32pc · Severity: high · Ecosystem: go — Maddy Mail Server has an LDAP Filter Injection via Unsanitized Username
| vendor | priority | summary | link |
|---|---|---|---|
alpine
|
— | CVE-2026-40193: 1 source package rows (maddy); 2 state rows across 2 repos (3.23-community, edge-community); fixed 2, open 0. | https://security.alpinelinux.org/vuln/CVE-2026-40193 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| maddy_project | maddy | < 0.9.3 | cpe:2.3:a:maddy_project:maddy:*:*:*:*:*:*:*:* |
| URL | Tags |
|---|---|
| https://github.com/foxcpp/maddy/commit/6a06337eb41fa87a35697366bcb71c3c962c44ba | Patch |
| https://github.com/foxcpp/maddy/releases/tag/v0.9.3 | Product Release Notes |
| https://github.com/foxcpp/maddy/security/advisories/GHSA-5835-4gvc-32pc | Exploit Vendor Advisory |