{"id":"CVE-2019-11340","published":"2019-04-19T13:35:36Z","modified":"2024-08-04T22:48:09Z","title":"util/emailutils.py in Matrix Sydent before 1.0.2 mishandles registration restrictions that are based on e-mail domain…","vendor":null,"product":null,"tier":"tail","description":{"text":"util/emailutils.py in Matrix Sydent before 1.0.2 mishandles registration restrictions that are based on e-mail domain, if the allowed_local_3pids option is enabled. This occurs because of potentially unwanted behavior in Python, in which an email.utils.parseaddr call on user@bad.example.net@good.example.com returns the user@bad.example.net substring.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01554,"percentile":0.75756,"provenance":"source"},"cwes":[],"references":[{"url":"https://twitter.com/matrixdotorg/status/1118934335963500545","tags":["x_refsource_MISC"]},{"url":"https://matrix.org/blog/2019/04/18/security-update-sydent-1-0-2/","tags":["x_refsource_MISC"]},{"url":"https://github.com/matrix-org/sydent/commit/4e1cfff53429c49c87d5c457a18ed435520044fc","tags":["x_refsource_MISC"]},{"url":"https://github.com/matrix-org/sydent/compare/7c002cd...09278fb","tags":["x_refsource_MISC"]}],"priority":{"score":15.2,"factors":[{"name":"EPSS percentile","points":15.15}]},"affected":[{"ecosystem":"PyPI","package":"matrix-sydent","vulnerableRanges":["<1.0.2"],"patched":["1.0.2"],"from":["GHSA-q9h8-gpw5-c95c","PYSEC-2026-843"],"provenance":"source"}],"summary":{"text":"The flaw is in util/emailutils.py in Matrix Sydent before version 1.0.2, where registration restrictions based on e-mail domain are mishandled when the allowed_local_3pids option is enabled. The underlying cause is that Python's email.utils.parseaddr returns a domain-restricted-bypassing substring for crafted addresses such as user@bad.example.net@good.example.com. An attacker could register using a crafted e-mail address that passes the domain check while representing a disallowed domain, provided the allowed_local_3pids option is enabled in the deployment.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:38:03Z"},"euvd":{"id":"EUVD-2022-4932","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-matrix-org-sydent-cve-2019-11340","children":[{"from":"CVE-2019-11340","to":"CVE-2021-29432","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["sydent/util/emailutils.py"],"commits":["https://github.com/matrix-org/sydent/commit/4e1cfff53429c49c87d5c457a18ed435520044fc","https://github.com/matrix-org/sydent/commit/4469d1d42b2b1612b70638224c07e19623039c42"],"basis":"shared function","functions":["sendEmail"]}]},{"from":"CVE-2019-11340","to":"CVE-2023-38686","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["sydent/util/emailutils.py"],"commits":["https://github.com/matrix-org/sydent/commit/4e1cfff53429c49c87d5c457a18ed435520044fc","https://github.com/matrix-org/sydent/commit/1cd748307c6b168b66154e6c4db715d4b9551261"],"basis":"shared function","functions":["sendEmail"]}]}],"packageHistory":[{"cve":"CVE-2019-11340","published":"2019-04-19","fixed":"1.0.2","kev":false},{"cve":"CVE-2019-11842","published":"2019-05-09","fixed":"1.0.3","kev":false,"link":{"from":"CVE-2019-11340","to":"CVE-2019-11842","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:matrix-sydent","fromFixed":"1.0.2","toFixed":"1.0.3","daysApart":20}]}},{"cve":"CVE-2021-29430","published":"2021-04-15","fixed":"2.3.0","kev":false},{"cve":"CVE-2021-29431","published":"2021-04-15","fixed":"2.3.0","kev":false}],"package":"PyPI:matrix-sydent"}}