Deserialization of Untrusted Data Affecting parso package, versions <0.5.1-0.1


Severity

Recommended
low

Based on Debian security rating.

Threat Intelligence

EPSS
0.22% (60th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Deserialization of Untrusted Data vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-DEBIANUNSTABLE-PARSO-348963
  • published6 Jun 2019
  • disclosed6 Jun 2019

Introduced: 6 Jun 2019

CVE-2019-12760  (opens in a new tab)
CWE-502  (opens in a new tab)

How to fix?

Upgrade Debian:unstable parso to version 0.5.1-0.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream parso package and not the parso package as distributed by Debian. See How to fix? for Debian:unstable relevant fixed versions and status.

A deserialization vulnerability exists in the way parso through 0.4.0 handles grammar parsing from the cache. Cache loading relies on pickle and, provided that an evil pickle can be written to a cache grammar file and that its parsing can be triggered, this flaw leads to Arbitrary Code Execution. NOTE: This is disputed because "the cache directory is not under control of the attacker in any common configuration.