{"id":"CVE-2022-24732","aliases":["CVE-2022-24732","GHSA-6cp7-g972-w9m9"],"related":[],"kind":"vulnerability","state":"published","title":"Maddy Mail Server does not implement account expiry","summary":"Maddy Mail Server is an open source SMTP compatible email server. Versions of maddy prior to 0.5.4 do not implement password expiry or account expiry checking when authenticating using PAM. Users are advised to upgrade. Users unable to upgrade should manually remove expired accounts via existing filtering mechanisms.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Maddy Mail Server is an open source SMTP compatible email server. Versions of maddy prior to 0.5.4 do not implement password expiry or account expiry checking when authenticating using PAM. Users are advised to upgrade. Users unable to upgrade should manually remove expired accounts via existing filtering mechanisms.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nAny configuration on any maddy version <0.5.4 using auth.pam is affected.\n\nNo password expiry or account expiry checking is done when authenticating using PAM.\n\n### Patches\n\nPatch is available as part of the 0.5.4 release.\n\n### Workarounds\n\nIf /etc/shadow authentication is used, it is possible to replace auth.pam with auth.shadow which is not affected.\n\nIt is possible to blacklist expired accounts via existing filtering mechanisms (e.g. auth_map to invalid accounts in storage.imapsql).\n\n### References\n\n* https://github.com/foxcpp/maddy/blob/3412e59a2c92106e194fa69f2f1017c020037c9c/internal/auth/pam/pam.c\n* https://linux.die.net/man/3/pam_acct_mgmt\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in https://github.com/foxcpp/maddy\n* Email fox.cpp@disroot.org","format":"markdown","source":"ghsa"},{"lang":"es","text":"Maddy Mail Server es un servidor de correo electrónico de código abierto compatible con SMTP. Las versiones de maddy anteriores a 0.5.4, no implementan la comprobación de la caducidad de la contraseña o de la cuenta cuando es autenticado usando PAM. Es recomendado a usuarios actualizar. Los usuarios que no puedan actualizarse deberán eliminar manualmente las cuentas caducadas por medio de los mecanismos de filtrado existentes","source":"nvd"}],"published":"2022-03-07T16:59:31.000Z","modified":"2026-06-17T04:32:23.633Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":6.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":6.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-324","CWE-613"],"affected":[{"ranges":[{"version":"< 0.5.4","status":"affected"}],"vendor":"foxcpp","product":"maddy","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.5.4"}],"ecosystem":"Go","package":"github.com/foxcpp/maddy","purl":"pkg:golang/github.com/foxcpp/maddy","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"0.5.0","fixed":"0.5.4"}],"vendor":"maddy_project","product":"maddy","cpe":"cpe:2.3:a:maddy_project:maddy:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/foxcpp/maddy/security/advisories/GHSA-6cp7-g972-w9m9","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/foxcpp/maddy/commit/7ee6a39c6a1939b376545f030a5efd6f90913583","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24732","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/foxcpp/maddy","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/foxcpp/maddy/releases/tag/v0.5.4","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-23T14:09:25.376Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-24732","url":"https://www.cve.org/CVERecord?id=CVE-2022-24732","licence":"CVE Terms of Use","modified":"2025-04-23T18:56:33.643Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6cp7-g972-w9m9","url":"https://github.com/advisories/GHSA-6cp7-g972-w9m9","licence":"CC-BY-4.0","modified":"2023-11-08T04:08:34.145Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-24732","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24732","licence":"Public domain","modified":"2026-06-17T04:32:23.633Z"}],"updatedAt":"2026-11-25T22:58:09.973Z","epss":{"score":0.00409,"percentile":0.37265,"date":"2026-12-01T12:00:22.000Z"}}