{"id":"PSF-2019-5","summary":"email.utils.parseaddr mistakenly parse an email","details":"An issue was discovered in Python through 2.7.16, 3.x through 3.5.7, 3.6.x through 3.6.9, and 3.7.x through 3.7.4. The email module wrongly parses email addresses that contain multiple @ characters. An application that uses the email module and implements some kind of checks on the From/To headers of a message could be tricked into accepting an email address that should be denied. An attack may be the same as in CVE-2019-11340; however, this CVE applies to Python more generally.","aliases":["CVE-2019-16056"],"modified":"2026-05-18T05:46:24.375256485Z","published":"2019-09-06T17:24:35Z","database_specific":{"cwe_ids":[]},"references":[{"type":"REPORT","url":"https://bugs.python.org/issue34155"},{"type":"WEB","url":"https://medium.com/@fs0c131y/tchap-the-super-not-secure-app-of-the-french-government-84b31517d144"},{"type":"WEB","url":"https://twitter.com/fs0c131y/status/1119143946687434753"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/python/cpython","events":[{"introduced":"0"},{"fixed":"063eba280a11d3c9a5dd9ee5abe4de640907951b"},{"fixed":"13a19139b5e76175bc95294d54afc9425e4f36c9"},{"fixed":"217077440a6938a0b428f67cfef6e053c4f8673c"},{"fixed":"4cbcd2f8c4e12b912e4d21fd892eedf7a3813d8e"},{"fixed":"8cb65d1381b027f0b09ee36bfed7f35bb4dec9a9"},{"fixed":"c48d606adcef395e59fd555496c42203b01dd3e8"}]}],"versions":["v3.6.9","v3.6.9rc1","v3.7.3rc1","v3.5.7","v3.5.7rc1","v2.7.16rc1","v3.6.8","v3.7.2rc1","v3.6.8rc1","v3.5.6","v3.5.6rc1","v3.7.0rc1","v3.6.6rc1","v3.7.0b5","v3.7.0b4","v2.7.15rc1","v3.7.0b3","v3.7.0b2","v3.5.5","v3.5.5rc1","v3.7.0b1","v3.7.0a2","v3.5.4","v3.5.4rc1","v3.6.2rc1","v3.5.3","v3.5.3rc1","v3.6.0rc1","v2.7.13rc1","v3.6.0b4","v3.6.0b3","v3.6.0b1","v3.6.0a3","v3.5.2","v3.5.2rc1","v2.7.12rc1","v3.5.1rc1","v2.7.11rc1","v3.5.0rc3","v3.5.0rc2","v3.5.0rc1","v3.5.0b4","v3.5.0b3","v3.5.0b1","v2.7.10rc1","v3.5.0a4","v3.5.0a3","v3.5.0a2","v3.5.0a1","v2.7.9rc1","v2.7.8","v3.4.0b3","v3.4.0b2","v3.4.0b1","v2.7.6rc1","v3.4.0a4","v3.4.0a3","v3.4.0a2","v3.4.0a1","v2.7.5","v2.7.4rc1","v3.3.0rc3","v3.3.0rc2","v3.3.0rc1","v3.3.0b2","v3.3.0b1","v3.3.0a4","v3.3.0a3","v3.3.0a2","v2.7.3rc1","v2.7.2rc1","v2.7","v3.2rc3","v3.2rc2","v3.2rc1","v3.2b2","v3.2b1","v2.7.1","v2.7.1rc1","v3.2a4","v3.2a3","v3.2a2","v3.2a1","v2.7rc2","v2.7rc1","v2.7b2","v2.7b1","v2.7a4","v2.7a3","v2.7a2","v2.7a1","v3.1","v3.1rc2","v3.1rc1","v3.1b1","v3.1a2","v3.1a1","v3.0rc3","v3.0rc2","v2.6","v2.6rc2","v3.0rc1","v2.6rc1","v3.0b3","v2.6b3","v2.6b2","v3.0b2","v2.6b1","v3.0b1","v2.6a3","v3.0a5","v2.6a2","v3.0a4","v3.0a3","v2.6a1","v3.0a2","v3.0a1","v2.5b3","v2.5b2","v2.5b1","v2.5a2","v2.5a1","v2.5a0","v2.4","v2.4c1","v2.4b2","v2.4b1","v2.4a3","v2.4a2","v2.4a1","v2.3c2","v2.3c1","v2.2a3","v2.1","v2.1c2","v2.1c1","v2.1b2","v2.1b1","v2.1a2","v2.1a1","v2.0","v2.0c1","v2.0b2","v2.0b1","v1.6a2","v1.6a1","v1.5.2","v1.5.2c1","v1.5.2b2","v1.5.2b1","v1.5.2a2","v1.5.2a1","v1.5.1","v1.5","v1.5b2","v1.5b1","v1.5a4","v1.5a3","v1.5a2","v1.5a1","v1.4","v1.4b3","v1.4b2","v1.4b1","v1.3","v1.3b1","v1.2","v1.2b4","v1.2b3","v1.2b2","v1.2b1","v1.1.1","v1.1","v1.0.2","v1.0.1","v0.9.9","v0.9.8"],"database_specific":{"source":"https://github.com/psf/advisory-database/blob/main/advisories/python/PSF-2019-5.json"}}],"schema_version":"1.7.5"}