PYSEC-2019-60 - typed_ast 1.3.0 and 1.3.1 has a handle_keywordonly_args out-of-bounds read. An attacker with the…

Severity: info · Published 2019-11-26

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.)

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

Quick answers

Is This vulnerability exploited in the wild?
No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.
How severe is This vulnerability?
Informational severity, published 26 November 2019.
Which products and versions are affected?
typed-ast (PyPI) 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 This vulnerability?
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?
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) GIT:introduced=0,fixed=156afcb26c198e162504a57caddfe0acd9ed7dce,fixed=dc317ac9cff859aa84eeabe03fb5004982545b3b|GIT:introduced=0,fixed=dcfcd146f8e6fc5c2fc16a4c192a0c5f5ca8c53c,fixed=a4d78362397fc3bced6ea80fbc7b5f4827aec55e|ECOSYSTEM:introduced=0,fixed=1.3.2

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