CVE-2020-5252: Malicious package may avoid detection in python auditing
5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.21648%
CWE
Published
3/24/2020
Updated
10/21/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:N/I:H/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
safety | pip | < 1.9.0 | 1.9.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability relies on patching Safety's core check function at runtime. The proof of concept demonstrates direct modification of safety.check to filter out 'insecure-package'. The attack vector (via .pth file loading) exploits Python's mutable runtime environment to subvert Security Decision mechanisms (CWE-807). The check function is explicitly targeted in the malicious init.py code shown in advisories, making it the clear vulnerable entry point.