🔍 CVE-2026-24486

8.6
CVSS Score
HIGH
2026-01-27
2026-08-07 12:17
✅ 완료

🇰🇷 한글 설명

Python-Multipart 라이브러리에서 발생하는 경로 조작 취약점으로, 업로드 디렉토리와 파일 이름 유지 설정을 사용할 때任意 위치에 업로드 파일을 작성할 수 있습니다.

💡 쉬운 설명

파이썬 멀티파트 라이브러리가 업로드 파일을 임의의 위치에 저장할 수 있는 취약점이 발견되었습니다. 이는 업로드 디렉토리와 파일 이름 유지 설정을 사용할 때 발생합니다. 업그레이드 또는 설정 변경으로 해결할 수 있습니다.

🇺🇸 원문 (English)

Python-Multipart is a streaming multipart parser for Python. Prior to version 0.0.22, a Path Traversal vulnerability exists when using non-default configuration options `UPLOAD_DIR` and `UPLOAD_KEEP_FILENAME=True`. An attacker can write uploaded files to arbitrary locations on the filesystem by crafting a malicious filename. Users should upgrade to version 0.0.22 to receive a patch or, as a workaround, avoid using `UPLOAD_KEEP_FILENAME=True` in project configurations.

📍 영향받는 시스템

Python-Multipart 라이브러리 버전 0.0.22 이전

⚔️ 공격 벡터

공격자는 악의적인 파일 이름을 생성하여 임의의 위치에 업로드 파일을 저장할 수 있습니다.

🛡️ 대응 방법

라이브러리 버전을 0.0.22 이상으로 업그레이드하거나 UPLOAD_KEEP_FILENAME=True 설정을 피하세요.

🔧 검증 코드

로컬 시스템에서 Python을 실행하여 python-multipart 라이브러리 버전을 확인합니다. pip 패키지 관리자가 설치되어 있어야 하며, 실행 권한이 필요합니다.

Shell / Script
import pkg_resources
try:
    pkg_resources.get_distribution('python-multipart')
    import subprocess
    result = subprocess.run(['pip', 'show', 'python-multipart'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    if result.stdout.decode('utf-8').find('Version: 0.0.22') != -1:
        print({"result": "양호", "reason": "python-multipart 라이브러리 버전이 0.0.22 이상입니다."})
    else:
        print({"result": "취약", "reason": "python-multipart 라이브러리 버전이 0.0.22 미만입니다."})
except pkg_resources.DistributionNotFound:
    print({"result": "미설치", "reason": "python-multipart 라이브러리가 설치되어 있지 않습니다."})

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Python