CVE-2019-16056: 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.

High CVSS 7.5

CVE id
CVE-2019-16056
Published
Last modified

Affected packages

PackageAffected versionsFixed in
Python
Runtimes and servers
<= 2.7.16
>= 3.0.0, <= 3.0.1
>= 3.1.0, <= 3.1.5
>= 3.2.0, <= 3.2.6
>= 3.3.0, <= 3.3.7
>= 3.4.0, <= 3.4.10
>= 3.5.0, <= 3.5.7
>= 3.6.0, <= 3.6.9
>= 3.7.0, <= 3.7.4
after 2.7.16, 3.0.1, 3.1.5, 3.2.6, 3.3.7, 3.4.10, 3.5.7, 3.6.9, 3.7.4

How to fix it

Upgrade Python to a release newer than the last affected update of the line you run (2.7.16, 3.0.1, 3.1.5, 3.2.6, 3.3.7, 3.4.10, 3.5.7, 3.6.9, 3.7.4).

python --version
  • Install the patched Python release of your minor line (pyenv, the python image tag, or your OS packages) and recreate virtual environments.

A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.

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.

References

Am I affected?

Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.

or paste its content

Needed when you paste. package.json and pyproject.toml only have version ranges: use the lockfile next to them.

Only package names and versions are checked; the file itself is not kept. We use your email to send this report and nothing else unless you tick the box above. Privacy policy.

About this data

Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.