Home / foxcpp / maddy / CVE-2026-40193
CVE-2026-40193: is it exploited, and which versions of foxcpp maddy are affected and fixed?
CVE-2026-40193 is a LDAP injection vulnerability in foxcpp maddy. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 14:08 UTC). Affected: github.com/foxcpp/maddy before 0.9.3 (GitHub advisory GHSA-5835-4gvc-32pc). Fixed in 0.9.3 (GitHub advisory GHSA-5835-4gvc-32pc). Severity: High (8.2, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 14:08 UTC, CVE record November 19, 2026, 07:07 UTC and NVD November 19, 2026, 07:12 UTC.
What is CVE-2026-40193?
Maddy Mail Server: 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.
From the CVE record by GitHub_M, last updated April 16, 2026, 14:23 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| foxcpp | maddy | < 0.9.3 |
As the CVE record by GitHub_M states it, last updated April 16, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Go | github.com/foxcpp/maddy | < 0.9.3 | 0.9.3 | GHSA-5835-4gvc-32pc |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated April 16, 2026. Summary: Maddy Mail Server has an LDAP Filter Injection via Unsanitized Username.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| maddy project | maddy | before 0.9.3 | application |
NVD analysis (status Analyzed), last modified October 26, 2026, 21:10 UTC.
How severe is CVE-2026-40193?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.2 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-40193 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: yes; technical impact: partial (CISA ADP, April 16, 2026)
- EPSS
- 0.45% probability of exploitation activity in the next 30 days, percentile 41.1 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-90 Improper Neutralization of Special Elements used in an LDAP Query
Where are the vendor advisories and references?
- https://github.com/foxcpp/maddy/security/advisories/GHSA-5835-4gvc-32pc x_refsource_CONFIRM
- https://github.com/foxcpp/maddy/commit/6a06337eb41fa87a35697366bcb71c3c962c44ba x_refsource_MISC
- https://github.com/foxcpp/maddy/releases/tag/v0.9.3 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- April 9, 2026
- Published
- April 15, 2026, 23:15 UTC
- CVE record updated
- April 16, 2026, 14:23 UTC by GitHub_M
- NVD
- Analyzed, last modified October 26, 2026, 21:10 UTC
- Last checked
- CVE list November 19, 2026, 07:07 UTC; NVD November 19, 2026, 07:12 UTC; KEV December 3, 2026, 14:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect maddy?
- Mar 13, 2023CVE-2023-27582 foxcpp maddy: authentication bypass (improper authentication)
- Mar 9, 2022CVE-2022-24732 foxcpp maddy: session does not expire
- Dec 28, 2021CVE-2021-42583 Foxcpp Maddy: broken or risky cryptography
Questions about CVE-2026-40193
Is CVE-2026-40193 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 14:08 UTC. FIRST's EPSS gives it a 0.45% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of foxcpp maddy are affected by CVE-2026-40193?
github.com/foxcpp/maddy before 0.9.3, per the GitHub advisory GHSA-5835-4gvc-32pc. The tables above give every range the sources list.
Which version fixes CVE-2026-40193?
0.9.3, per the GitHub advisory GHSA-5835-4gvc-32pc. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-40193?
High (8.2, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2026-40193?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.