CVE-2023-27582
JSON

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 packageVersionsReported by
foxcpp maddy>= 0.2.0 0.6.3CVE List
github.com/foxcpp/maddy (Go)from 0.2.0 before 0.6.3GitHub Advisory Database, Go Vulnerability Database
maddy_project maddyfrom 0.2.0 before 0.6.3NVD

All scores

GitHub_M9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
GitHub9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-287CWE-305

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

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
Go Vulnerability Database

Full authentication bypass if SASL authorization username is specified in github.com/foxcpp/maddy

References

Sources

SourceRecordLicence
CVE ListCVE-2023-27582 changed 2025-02-25CVE Terms of Use
GitHub Advisory DatabaseGHSA-4g76-w3xw-2x6w changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2023-1630 changed 2026-03-03CC-BY-4.0
NVDCVE-2023-27582 changed 2026-06-17Public domain