Security mailing lists by PureSourceCode

CVE-2020-5252

MEDIUM 4.1CVSS 3.1

Malicious package may avoid detection in python auditing

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.

Published
23 Mar 2020
Last modified
8 Jul 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-807
Also known as
GHSA-7q25-qrjw-6fg2PYSEC-2020-101
Sources
NVDJSONOSV GHSA-7q25-qrjw-6fg2JSONOSV PYSEC-2020-101JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 5.0 CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:N/I:H/A:N
OSV GitHub CVSS 3.1 MEDIUM 5.0 CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:N/I:H/A:N
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 4.1 CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:H/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 LOW 1.9 AV:L/AC:M/Au:N/C:N/I:P/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD pyup safety
cpe:2.3:a:pyup:safety:*:*:*:*:*:*:*:*
<= 1.8.6
OSV PyPI safety < 1.9.0 1.9.0
OSV PyPI safety < 1.8.7 1.8.7

References

History

  • 25 Nov 2026 20:31 UTC · NVD: first stored (published 23 Mar 2020)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 23 Mar 2020)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 24 Mar 2020)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.