🔍 CVE-2020-5252

5.0
CVSS Score
MEDIUM
2020-03-23
2026-06-17 03:21
✅ 완료

🇰🇷 한글 설명

Python의 command-line 'safety' 패키지에서 악성 패키지를 위장하거나 난독화하여 탐지 루틴을 무력화할 수 있는 보안 취약점이 발견되었습니다. 이는 Python의 특정 특성을 악용하여 기존의 보안 검사 기능을 우회하는 방식입니다.

💡 쉬운 설명

해커가 나쁜 프로그램을 안전한 프로그램처럼 보이게 속여서 보안 검사 도구가 이를 놓치게 만들 수 있습니다. 신뢰할 수 없는 환경에서 보안 검사를 실행할 때 발생할 수 있는 문제입니다.

🇺🇸 원문 (English)

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.

📍 영향받는 시스템

Python command-line 'safety' package (특정 버전 명시되지 않음)

⚔️ 공격 벡터

신뢰할 수 없는 Python 환경에서 악성 패키지의 특성을 이용한 탐지 로직 우회 및 난독화

🛡️ 대응 방법

Docker 이미지 사용, 별도의 깨끗한 환경에서 실행, 또는 PyUp.io의 온라인 검사 도구 활용

🔧 검증 코드

설치된 safety 패키지의 버전을 확인하여 취약점 영향 여부를 검토합니다.

Shell / Script
pip show safety

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:N/I:H/A:N

💻 영향받는 소프트웨어

Docker