CVE-2019-19275: typed-ast Out-of-bounds Read

CVE-2019-19275 · Severity: low · CVSS 3.1 · Published 2019-11-26

typed_ast 1.3.0 and 1.3.1 has an ast_for_arguments 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.)

Technologies: typed-ast (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2019-19275 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2019-19275 being exploited in the wild.
How severe is CVE-2019-19275?
Low severity, with a CVSS score of 3.1, published 26 November 2019.
Which products and versions are affected?
typed-ast (PyPI) ECOSYSTEM:introduced=1.3.0,fixed=1.3.2, GIT:introduced=0,fixed=156afcb26c198e162504a57caddfe0acd9ed7dce,fixed=dc317ac9cff859aa84eeabe03fb5004982545b3b|GIT:introduced=0,fixed=dcfcd146f8e6fc5c2fc16a4c192a0c5f5ca8c53c,fixed=a4d78362397fc3bced6ea80fbc7b5f4827aec55e|ECOSYSTEM:introduced=0,fixed=1.3.2.
Is there a fix for CVE-2019-19275?
Yes. typed-ast (PyPI): upgrade to 1.3.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2019-19275?
Check whether you run typed-ast (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • typed-ast (PyPI): upgrade to 1.3.2 or later
    pip install "typed-ast>=1.3.2"

Affected products

  • typed-ast (PyPI) ECOSYSTEM:introduced=1.3.0,fixed=1.3.2, GIT:introduced=0,fixed=156afcb26c198e162504a57caddfe0acd9ed7dce,fixed=dc317ac9cff859aa84eeabe03fb5004982545b3b|GIT:introduced=0,fixed=dcfcd146f8e6fc5c2fc16a4c192a0c5f5ca8c53c,fixed=a4d78362397fc3bced6ea80fbc7b5f4827aec55e|ECOSYSTEM:introduced=0,fixed=1.3.2

Identifiers

  • CVE-2019-19275
  • GHSA-7xxv-wpxj-mx5v
  • PYSEC-2019-131

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.