9.1critical
Full authentication bypass if SASL authorization username is specified
- Severity
- 9.1critical CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.02% (higher than 64% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-4g76-w3xw-2x6wGO-2023-1630
Description
maddy is a composable, all-in-one mail server. Starting with version 0.2.0 and prior to version 0.6.3, maddy allows a full authentication bypass if SASL authorization username is specified when using the PLAIN authentication mechanisms. Instead of validating the specified username, it is accepted as is after checking the credentials for the authentication username. maddy 0.6.3 includes the fix for the bug. There are no known workarounds.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| foxcpp maddy | >= 0.2.0 0.6.3 | CVE List |
| github.com/foxcpp/maddy (Go) | from 0.2.0 before 0.6.3 | GitHub Advisory Database, Go Vulnerability Database |
| maddy_project maddy | from 0.2.0 before 0.6.3 | NVD |
All scores
| GitHub_M | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| GitHub | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
What each source says
CVE List
maddy is a composable, all-in-one mail server. Starting with version 0.2.0 and prior to version 0.6.3, maddy allows a full authentication bypass if SASL authorization username is specified when using the PLAIN authentication mechanisms. Instead of validating the specified username, it is accepted as is after checking the credentials for the authentication username. maddy 0.6.3 includes the fix for the bug. There are no known workarounds.
GitHub Advisory Database
Impact
maddy 0.2.0 - 0.6.2 allows a full authentication bypass if SASL authorization username is specified when using the PLAIN authentication mechanisms. Instead of validating the specified authorization username, it is accepted as is after checking the credentials for the authentication username.
Patches
maddy 0.6.3 includes the fix for the bug.
Workarounds
There is no way to fix the issue without upgrading.
References
- Commit that introduced the vulnerable code: https://github.com/foxcpp/maddy/commit/55a91a37b71210f34f98f4d327c30308fe24399a
- Fix: https://github.com/foxcpp/maddy/commit/9f58cb64b39cdc01928ec463bdb198c4c2313a9c
Go Vulnerability Database
Full authentication bypass if SASL authorization username is specified in github.com/foxcpp/maddy
References
| https://github.com/foxcpp/maddy/security/advisories/GHSA-4g76-w3xw-2x6w | advisory, patch, vendor-advisory, web | |
| https://github.com/foxcpp/maddy/commit/55a91a37b71210f34f98f4d327c30308fe24399a | fix, patch, web | |
| https://github.com/foxcpp/maddy/commit/9f58cb64b39cdc01928ec463bdb198c4c2313a9c | fix, patch, web | |
| https://github.com/foxcpp/maddy/releases/tag/v0.6.3 | release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-27582 | advisory | |
| https://github.com/foxcpp/maddy | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-27582 changed 2025-02-25 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-4g76-w3xw-2x6w changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2023-1630 changed 2026-03-03 | CC-BY-4.0 |
| NVD | CVE-2023-27582 changed 2026-06-17 | Public domain |