CVE-2019-19274 typed-ast Out-of-bounds Read

High 7.5 Published Updated

An out-of-bounds read in typed_ast allows attackers to crash the Python interpreter by providing malicious source code for parsing.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2019-19274?

CVE-2019-19274 is a high-severity denial of service vulnerability in n/a, published on 26 Nov 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

typed_ast 1.3.0 and 1.3.1 has a handle_keywordonly_args out-of-bounds read. An attacker with the ability to cause a Python interpreter to parse Python source (but not necessarily execute it) may be able to crash the interpreter process. This could be a concern, for example, in a web-based service that parses (but does not execute) Python code. (This issue also affected certain Python 3.8.0-alpha prereleases.)

Weakness: CWE-125

Which versions are affected by CVE-2019-19274?

3 open source packages ship an affected version, including typed-ast. It affects 1 product.

PackageAffectedFixed in
typed-ast PyPIAll versions1.3.2
typed-ast PyPIFrom 1.3.01.3.2
typed-ast PyPIFrom 1.3.01.3.2

Products include Python Typed Ast.

How do I fix CVE-2019-19274?

Upgrade typed-ast to 1.3.2 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2019-19274 being exploited?

There is no known exploitation of CVE-2019-19274 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2019-19274, GHSA-m3jw-62m7-jjcm, PYSEC-2019-130, UBUNTU-CVE-2019-19274.

Is CVE-2019-19274 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free