Skip to content
High 8.2

Vulnerability in github.com/foxcpp/maddy

CVE-2026-40193 First seen on SecPulse

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

A vulnerability tracked as CVE-2026-40193 has been found in github.com/foxcpp/maddy.
Attackers can target a specific entry point like auth.ldap over the network to misuse the product.
Confidential information can be exposed externally.
What to do: upgrade github.com/foxcpp/maddy to 0.9.3 or later.
If unsure, ask your IT team or search "github.com/foxcpp/maddy CVE-2026-40193" on the vendor's site.

CVE-2026-40193 (github.com/foxcpp/maddy) — CWE-90
Attack vector: remote (network-reachable) / unauthenticated / no user interaction
Attack surface: auth.ldap / username / filter / alice
Patched: 0.9.3 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.

What is the problem

A vulnerability (CWE-90) exists in github.com/foxcpp/maddy. Attackers reach the vulnerable code path via auth.ldap without authentication.

Affected scope

Check the vendor advisory for the affected versions of github.com/foxcpp/maddy. Attack surface: auth.ldap / username / filter / alice.

Severity

Severity: ?. Confidential information can be exposed externally.

How to fix

Update to 0.9.3.

Workaround

Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.

Detection

Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'github.com/foxcpp/maddy' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.

Response actions

Concrete steps and command examples for SOC/SRE teams to execute in order

  1. 1
    Identify exposureidentify
    grep -r 'github.com/foxcpp/maddy' . | grep -v node_modules

    リポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で github.com/foxcpp/maddy を grep し、稼働しているサービス・バージョンを把握する。

  2. 2
    Apply patchpatch
    Upgrade github.com/foxcpp/maddy to 0.9.3

    ステージング環境で 0.9.3 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。

  3. 3
    Post-deployment verificationverify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

Affected packages

PackageAffected → Fixed
Gogithub.com/foxcpp/maddy
< 0.9.3→ 0.9.3

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

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.

Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details