Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-40193: CWE-90: Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection') in foxcpp maddy

0
High
VulnerabilityCVE-2026-40193cvecve-2026-40193cwe-90
Published: Wed Apr 15 2026 (04/15/2026, 23:15:25 UTC)
Source: CVE Database V5
Vendor/Project: foxcpp
Product: maddy

Description

maddy versions prior to 0. 9. 3 contain an LDAP injection vulnerability in the auth. ldap module. This occurs because user-supplied usernames are inserted into LDAP search filters and DN strings without proper escaping. An attacker with network access to SMTP submission or IMAP interfaces can exploit this to manipulate LDAP queries, potentially authenticating as other users or extracting LDAP directory information. The vulnerability is fixed in version 0. 9. 3.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/15/2026, 23:46:52 UTC

Technical Analysis

The vulnerability in foxcpp maddy (versions before 0.9.3) is an LDAP injection (CWE-90) caused by improper neutralization of special elements in LDAP queries. The auth.ldap module interpolates usernames into LDAP filters and DN strings using strings.ReplaceAll() without using the available ldap.EscapeFilter() function. This affects three code paths: Lookup() filter, AuthPlain() DN template, and AuthPlain() filter. Exploitation requires network access to SMTP submission or IMAP interfaces and allows attackers to inject arbitrary LDAP filter expressions via the username field in AUTH PLAIN or LOGIN commands. This can lead to identity spoofing, LDAP directory enumeration, and blind extraction of LDAP attributes through authentication response side-channels. The issue is resolved in maddy version 0.9.3.

Potential Impact

Successful exploitation allows an unauthenticated attacker with network access to SMTP submission or IMAP interfaces to manipulate LDAP queries used for authentication. This can result in identity spoofing by authenticating as another user, unauthorized enumeration of LDAP directory contents, and extraction of LDAP attribute values through side-channel analysis. The confidentiality and integrity of authentication processes are impacted, but availability is not affected.

Mitigation Recommendations

This vulnerability is fixed in maddy version 0.9.3. Users should upgrade to version 0.9.3 or later to remediate the issue. There is no official vendor advisory provided here, but the fix is confirmed by the version update. Until upgraded, restrict network access to SMTP submission and IMAP interfaces to trusted users only to reduce exposure.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-04-09T20:59:17.620Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 69e01ffb82d89c981fa83030

Added to database: 4/15/2026, 11:32:11 PM

Last enriched: 4/15/2026, 11:46:52 PM

Last updated: 4/16/2026, 2:19:38 AM

Views: 8

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses