Identity spoofing and LDAP disclosure via unescaped usernames
Published Apr 15, 2026 · Updated Apr 15, 2026
LDAP injection in foxcpp Maddy Mail Server before 0.9.3 allows remote attackers to expose LDAP data via crafted authentication usernames. The auth.ldap Lookup() and AuthPlain() paths insert raw usernames into LDAP filters and DN templates with strings.ReplaceAll() instead of escaping LDAP metacharacters. Exposure requires network access to an SMTP submission or IMAP authentication endpoint configured with auth.ldap; crafted filters enable identity spoofing, directory enumeration, and blind attribute extraction.
Summary
What happened
LDAP injection in foxcpp Maddy Mail Server before 0.9.3 allows remote attackers to expose LDAP data via crafted authentication usernames. The auth.ldap Lookup() and AuthPlain() paths insert raw usernames into LDAP filters and DN templates with strings.ReplaceAll() instead of escaping LDAP metacharacters. Exposure requires network access to an SMTP submission or IMAP authentication endpoint configured with auth.ldap; crafted filters enable identity spoofing, directory enumeration, and blind attribute extraction.
The record
- CVE
- CVE-2026-40193
- Published
- Apr 15, 2026
- Updated
- Apr 15, 2026
- Vendor
- foxcpp
- Product
- Maddy Mail Server
- Classifications
- CWE-90, T1190
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Apr 15, 2026CVE publishedPublication date reported by the CVE source.
- Apr 15, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=< 0.9.3
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- GHSA-5835-4gvc-32pc LDAP injection proof of conceptproof of concept · unverified
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo