SCA: security update for safety (GHSA-7q25-qrjw-6fg2)

medium Tenable Self-Hosted Container Security Plugin ID 422238

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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.
(CVE-2020-5252)

See Also

https://github.com/advisories/GHSA-7q25-qrjw-6fg2

Plugin Details

Severity: Medium

ID: 422238

Version: Revision 1.3

Type: Local

Family: SCA Checks

Published: 3/28/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 3

Percentile: 23.18

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Low

Base Score: 1.9

Temporal Score: 1.4

Vector: CVSS2#AV:L/AC:M/Au:N/C:N/I:P/A:N

CVSS Score Source: CVE-2020-5252

CVSS v3

Risk Factor: Medium

Base Score: 4.1

Temporal Score: 3.6

Vector: CVSS:3.0/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:H/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 3/24/2020

Vulnerability Publication Date: 3/23/2020

Reference Information

CVE: CVE-2020-5252

cwe: CWE-807