CVE-2020-5252
"Python Safety Package Python Characteristic Manipulation Vulnerability"
Description
The command-line "safety" package for Python has a potential security issue. There are two Python characteristics that allow malicious code to “poison-pill” command-line Safety package detection routines by disguising, or obfuscating, other malicious or non-secure packages. This vulnerability is considered to be of low severity because the attack makes use of an existing Python condition, not the Safety tool itself. This can happen if: You are running Safety in a Python environment that you don’t trust. You are running Safety from the same Python environment where you have your dependencies installed. Dependency packages are being installed arbitrarily or without proper verification. Users can mitigate this issue by doing any of the following: Perform a static analysis by installing Docker and running the Safety Docker image: $ docker run --rm -it pyupio/safety check -r requirements.txt Run Safety against a static dependencies list, such as the requirements.txt file, in a separate, clean Python environment. Run Safety from a Continuous Integration pipeline. Use PyUp.io, which runs Safety in a controlled environment and checks Python for dependencies without any need to install them. Use PyUp's Online Requirements Checker.
INFO
Published Date :
March 23, 2020, 11:15 p.m.
Last Modified :
Nov. 21, 2024, 5:33 a.m.
Source :
[email protected]
Remotely Exploitable :
No
Impact Score :
4.0
Exploitability Score :
0.6
Public PoC/Exploit Available at Github
CVE-2020-5252 has a 3 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2020-5252
.
URL | Resource |
---|---|
https://github.com/akoumjian/python-safety-vuln | Product Third Party Advisory |
https://github.com/pyupio/safety/security/advisories/GHSA-7q25-qrjw-6fg2 | Mitigation Third Party Advisory |
https://pyup.io/posts/patched-vulnerability/ | Vendor Advisory |
https://github.com/akoumjian/python-safety-vuln | Product Third Party Advisory |
https://github.com/pyupio/safety/security/advisories/GHSA-7q25-qrjw-6fg2 | Mitigation Third Party Advisory |
https://pyup.io/posts/patched-vulnerability/ | Vendor Advisory |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
None
JavaScript
Circumvent any python package scanner installed to the same python environment.
Python
A command line tool for detecting vulnerabilities in Python dependencies and doing safe package installs
security security-tools vulnerabilities vulnerability-scanners dependency-analysis supply-chain python developer-tools pipfile pip requirements devsecops
Python Dockerfile Jinja
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2020-5252
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2020-5252
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/akoumjian/python-safety-vuln Added Reference https://github.com/pyupio/safety/security/advisories/GHSA-7q25-qrjw-6fg2 Added Reference https://pyup.io/posts/patched-vulnerability/ -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
Initial Analysis by [email protected]
Mar. 30, 2020
Action Type Old Value New Value Added CVSS V2 NIST (AV:L/AC:M/Au:N/C:N/I:P/A:N) Added CVSS V3.1 NIST AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:H/A:N Changed Reference Type https://github.com/akoumjian/python-safety-vuln No Types Assigned https://github.com/akoumjian/python-safety-vuln Product, Third Party Advisory Changed Reference Type https://github.com/pyupio/safety/security/advisories/GHSA-7q25-qrjw-6fg2 No Types Assigned https://github.com/pyupio/safety/security/advisories/GHSA-7q25-qrjw-6fg2 Mitigation, Third Party Advisory Changed Reference Type https://pyup.io/posts/patched-vulnerability/ No Types Assigned https://pyup.io/posts/patched-vulnerability/ Vendor Advisory Added CWE NIST NVD-CWE-noinfo Added CPE Configuration OR *cpe:2.3:a:pyup:safety:*:*:*:*:*:*:*:* versions up to (including) 1.8.6 -
CVE Modified by [email protected]
Mar. 24, 2020
Action Type Old Value New Value Changed Description The command-line "safety" package for Python has a potential security issue. There are two Python characteristics that allow malicious code to “poison-pillâ€? command-line Safety package detection routines by disguising, or obfuscating, other malicious or non-secure packages. This vulnerability is considered to be of low severity because the attack makes use of an existing Python condition, not the Safety tool itself. This can happen if: You are running Safety in a Python environment that you don’t trust. You are running Safety from the same Python environment where you have your dependencies installed. Dependency packages are being installed arbitrarily or without proper verification. Users can mitigate this issue by doing any of the following: Perform a static analysis by installing Docker and running the Safety Docker image: $ docker run --rm -it pyupio/safety check -r requirements.txt Run Safety against a static dependencies list, such as the requirements.txt file, in a separate, clean Python environment. Run Safety from a Continuous Integration pipeline. Use PyUp.io, which runs Safety in a controlled environment and checks Python for dependencies without any need to install them. Use PyUp's Online Requirements Checker. The command-line "safety" package for Python has a potential security issue. There are two Python characteristics that allow malicious code to “poison-pill” command-line Safety package detection routines by disguising, or obfuscating, other malicious or non-secure packages. This vulnerability is considered to be of low severity because the attack makes use of an existing Python condition, not the Safety tool itself. This can happen if: You are running Safety in a Python environment that you don’t trust. You are running Safety from the same Python environment where you have your dependencies installed. Dependency packages are being installed arbitrarily or without proper verification. Users can mitigate this issue by doing any of the following: Perform a static analysis by installing Docker and running the Safety Docker image: $ docker run --rm -it pyupio/safety check -r requirements.txt Run Safety against a static dependencies list, such as the requirements.txt file, in a separate, clean Python environment. Run Safety from a Continuous Integration pipeline. Use PyUp.io, which runs Safety in a controlled environment and checks Python for dependencies without any need to install them. Use PyUp's Online Requirements Checker.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2020-5252
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2020-5252
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.07 }} -0.03%
score
0.18179
percentile