Dependency-scan evasion via startup-time library monkey-patching
Published Mar 23, 2020 · Updated Aug 4, 2024
Security-decision bypass in Safety CLI before 1.9.0 allows local users to hide vulnerable packages from dependency scan results. A package-installed .pth file runs during Python startup and monkey-patches Safety's checking function so selected packages disappear from results. Exploitation requires an attacker-controlled package in the same untrusted Python environment, and the bounded consequence is false-negative audit output.
Summary
What happened
Security-decision bypass in Safety CLI before 1.9.0 allows local users to hide vulnerable packages from dependency scan results. A package-installed .pth file runs during Python startup and monkey-patches Safety's checking function so selected packages disappear from results. Exploitation requires an attacker-controlled package in the same untrusted Python environment, and the bounded consequence is false-negative audit output.
The record
- CVE
- CVE-2020-5252
- Published
- Mar 23, 2020
- Updated
- Aug 4, 2024
- Vendor
- Safety Cybersecurity
- Product
- Safety CLI
- Classifications
- CWE-807, T1562.001
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Mar 23, 2020CVE publishedPublication date reported by the CVE source.
- Aug 4, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=< 1.9.0
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- python-safety-vuln poison-pill demonstrationfunctional · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo