CVE-2019-16056
JSON

5.3medium

email.utils.parseaddr mistakenly parse an email

Severity
5.3medium CVSS:3.1 by CISA-ADP
Exploit likelihood
4.60% (higher than 91% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
PSF-2019-5

Description

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
https://github.com/python/cpythonbefore 063eba280a11d3c9a5dd9ee5abe4de640907951b, before 13a19139b5e76175bc95294d54afc9425e4f36c9, before 217077440a6938a0b428f67cfef6e053c4f8673c, before 4cbcd2f8c4e12b912e4d21fd892eedf7a3813d8e, before 8cb65d1381b027f0b09ee36bfed7f35bb4dec9a9, before c48d606adcef395e59fd555496c42203b01dd3e8Python Software Foundation
python pythonup to 2.7.16, from 3.0.0 up to 3.0.1, from 3.1.0 up to 3.1.5, from 3.2.0 up to 3.2.6, from 3.3.0 up to 3.3.7, from 3.4.0 up to 3.4.10, from 3.5.0 up to 3.5.7, from 3.6.0 up to 3.6.9 and 1 moreNVD
fedoraproject fedora29, 30, 31NVD
debian debian_linux8.0, 9.0NVD
canonical ubuntu_linux12.04, 14.04, 16.04, 18.04, 19.04NVD
redhat software_collections1.0NVD
oracle communications_operations_monitorfrom 4.1 up to 4.3, 3.4NVD
oracle peoplesoft_enterprise_peopletools8.57, 8.58NVD
oracle zfs_storage_appliance_kit8.8NVD
oracle solaris11NVD
opensuse leap15.0, 15.1NVD

All scores

CISA-ADP5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:P/I:N/A:N

Classification

CWE-20

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

What each source says

CVE List

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.

NVD (es)

Se descubrió un problema en Python versiones hasta 2.7.16, versiones 3.x hasta 3.5.7, versiones 3.6.x hasta 3.6.9 y versiones 3.7.x hasta 3.7.4. El módulo de correo electrónico analiza incorrectamente las direcciones de correo electrónico que contienen múltiples caracteres @. Una aplicación que usa el módulo de correo electrónico e implementa algún tipo de comprobación sobre los encabezados From/To de un mensaje podría ser engañada para aceptar una dirección de correo electrónico que debería ser denegada. Un ataque puede ser el mismo que en CVE-2019-11340; sin embargo, este CVE aplica a Python de manera más general.

References

https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/K4KZEFP6E4YPYB52AF4WXCUDSGQOTF37/vendor-advisory
https://lists.debian.org/debian-lts-announce/2019/09/msg00019.htmlmailing-list, third-party-advisory
https://lists.debian.org/debian-lts-announce/2019/09/msg00018.htmlmailing-list, third-party-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NF3DRDGMVIRYNZMSLJIHNW47HOUQYXVG/vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ER6LONC2B2WYIO56GBQUDU6QTWZDPUNQ/vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/E2HP37NUVLQSBW3J735A2DQDOZ4ZGBLY/vendor-advisory
https://usn.ubuntu.com/4151-1/third-party-advisory, vendor-advisory
https://usn.ubuntu.com/4151-2/third-party-advisory, vendor-advisory
http://lists.opensuse.org/opensuse-security-announce/2019-10/msg00062.htmlthird-party-advisory, vendor-advisory
http://lists.opensuse.org/opensuse-security-announce/2019-10/msg00063.htmlthird-party-advisory, vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QP46PQSUKYPGWTADQ67NOV3BUN6JM34Z/vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QASRD4E2G65GGEHYKVHYCXB2XWAGTNL4/vendor-advisory

Sources

SourceRecordLicence
CVE ListCVE-2019-16056 changed 2026-10-14CVE Terms of Use
Python Software FoundationPSF-2019-5 changed 2025-10-09CC-BY-4.0
NVDCVE-2019-16056 changed 2026-10-14Public domain