Malicious package may avoid detection in python auditing
Published Mar 23, 2020
5.0
MEDIUMCVSS 3.1
EPSS 0.37%
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.
Affected products
-
Affected
- < 1.9.0
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
No remediation recorded yet.
References (8)
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2020-0170 Advisory
- https://github.com/advisories/GHSA-7q25-qrjw-6fg2 Advisory
- https://github.com/akoumjian/python-safety-vuln x_refsource_CONFIRMProductThird Party Advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/safety/PYSEC-2020-101.yaml
- https://github.com/pyupio/safety/security/advisories/GHSA-7q25-qrjw-6fg2 x_refsource_CONFIRMMitigationThird Party Advisory
- https://mulch.dev/blog/CVE-2020-5252-python-safety-vuln
- https://nvd.nist.gov/vuln/detail/CVE-2020-5252
- https://pyup.io/posts/patched-vulnerability x_refsource_CONFIRMVendor Advisory
| Link | Providers | Tags |
|---|---|---|
| https://euvd.enisa.europa.eu/vulnerability/EUVD-2020-0170 | Advisory | |
| https://github.com/advisories/GHSA-7q25-qrjw-6fg2 | Advisory | |
| https://github.com/akoumjian/python-safety-vuln | x_refsource_CONFIRMProductThird Party Advisory | |
| https://github.com/pypa/advisory-database/tree/main/vulns/safety/PYSEC-2020-101.yaml | ||
| https://github.com/pyupio/safety/security/advisories/GHSA-7q25-qrjw-6fg2 | x_refsource_CONFIRMMitigationThird Party Advisory | |
| https://mulch.dev/blog/CVE-2020-5252-python-safety-vuln | ||
| https://nvd.nist.gov/vuln/detail/CVE-2020-5252 | ||
| https://pyup.io/posts/patched-vulnerability | x_refsource_CONFIRMVendor Advisory |
Change history (0)
No recorded changes yet.
CVE.org / MITRE
CISA Vulnrichment
No data
Red Hat
No data
GitHub