From 5386ae76352cd89fb6477efd1b542ff0dc20bb9f Mon Sep 17 00:00:00 2001 From: Robert Schultheis Date: Mon, 23 Mar 2020 17:03:30 -0600 Subject: [PATCH] add CVE-2020-5252 for GHSA-7q25-qrjw-6fg2 --- 2020/5xxx/CVE-2020-5252.json | 87 +++++++++++++++++++++++++++++++++--- 1 file changed, 81 insertions(+), 6 deletions(-) diff --git a/2020/5xxx/CVE-2020-5252.json b/2020/5xxx/CVE-2020-5252.json index 6d723bdea2c..349647ad7d5 100644 --- a/2020/5xxx/CVE-2020-5252.json +++ b/2020/5xxx/CVE-2020-5252.json @@ -1,18 +1,93 @@ { - "data_type": "CVE", - "data_format": "MITRE", - "data_version": "4.0", "CVE_data_meta": { + "ASSIGNER": "security-advisories@github.com", "ID": "CVE-2020-5252", - "ASSIGNER": "cve@mitre.org", - "STATE": "RESERVED" + "STATE": "PUBLIC", + "TITLE": "Malicious package may avoid detection in python auditing" }, + "affects": { + "vendor": { + "vendor_data": [ + { + "product": { + "product_data": [ + { + "product_name": "safety", + "version": { + "version_data": [ + { + "version_value": "< 1.9.0" + } + ] + } + } + ] + }, + "vendor_name": "pyupio" + } + ] + } + }, + "data_format": "MITRE", + "data_type": "CVE", + "data_version": "4.0", "description": { "description_data": [ { "lang": "eng", - "value": "** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided." + "value": "The command-line \"safety\" package for Python has a potential security issue.\n\nThere 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.\n\nThis vulnerability is considered to be of low severity because the attack makes use of an existing Python condition, not the Safety tool itself.\n\nThis can happen if:\n\nYou are running Safety in a Python environment that you don’t trust.\nYou are running Safety from the same Python environment where you have your dependencies installed.\nDependency packages are being installed arbitrarily or without proper verification.\n\nUsers can mitigate this issue by doing any of the following:\n\nPerform a static analysis by installing Docker and running the Safety Docker image: $ docker run --rm -it pyupio/safety check -r requirements.txt\n\nRun Safety against a static dependencies list, such as the requirements.txt file, in a separate, clean Python environment.\n\nRun Safety from a Continuous Integration pipeline.\n\nUse PyUp.io, which runs Safety in a controlled environment and checks Python for dependencies without any need to install them.\n\nUse PyUp's Online Requirements Checker." } ] + }, + "impact": { + "cvss": { + "attackComplexity": "HIGH", + "attackVector": "LOCAL", + "availabilityImpact": "NONE", + "baseScore": 5, + "baseSeverity": "MEDIUM", + "confidentialityImpact": "NONE", + "integrityImpact": "HIGH", + "privilegesRequired": "HIGH", + "scope": "CHANGED", + "userInteraction": "REQUIRED", + "vectorString": "CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:N/I:H/A:N", + "version": "3.1" + } + }, + "problemtype": { + "problemtype_data": [ + { + "description": [ + { + "lang": "eng", + "value": "CWE-807 Reliance on Untrusted Inputs in a Security Decision" + } + ] + } + ] + }, + "references": { + "reference_data": [ + { + "name": "https://github.com/pyupio/safety/security/advisories/GHSA-7q25-qrjw-6fg2", + "refsource": "CONFIRM", + "url": "https://github.com/pyupio/safety/security/advisories/GHSA-7q25-qrjw-6fg2" + }, + { + "name": "https://pyup.io/posts/patched-vulnerability/", + "refsource": "CONFIRM", + "url": "https://pyup.io/posts/patched-vulnerability/" + }, + { + "name": "https://github.com/akoumjian/python-safety-vuln", + "refsource": "CONFIRM", + "url": "https://github.com/akoumjian/python-safety-vuln" + } + ] + }, + "source": { + "advisory": "GHSA-7q25-qrjw-6fg2", + "discovery": "UNKNOWN" } } \ No newline at end of file