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

Source: https://junglewise.ai/threats/cve-2019-19274-typed-ast-out-of-bounds-read  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2019-11-26  
License: CC BY 4.0 with a link back

CVE-2019-19274 · Severity: low · CVSS 3.1 · 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)](https://junglewise.ai/threats/technologies/typed-ast). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2019-19274 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2019-19274 being exploited in the wild.

**How severe is CVE-2019-19274?** 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-19274?** 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-19274?** 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

  ```sh
  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-19274
- GHSA-m3jw-62m7-jjcm
- PYSEC-2019-130

## Related threats

- [typed-ast Out-of-bounds Read](https://junglewise.ai/threats/cve-2019-19275-typed-ast-out-of-bounds-read)
- [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…](https://junglewise.ai/threats/pysec-2019-60-typed-ast-1-3-0-and-1-3-1-has-a-handle-keywordonly-args-be968159)
- [PYSEC-2019-61 - typed_ast 1.3.0 and 1.3.1 has an ast_for_arguments out-of-bounds read. An attacker with the ability to…](https://junglewise.ai/threats/pysec-2019-61-typed-ast-1-3-0-and-1-3-1-has-an-ast-for-arguments-out-of-d583c1af)
