🔍 CVE-2026-102734

5.5
CVSS Score
MEDIUM
2026-10-13
2026-10-16 20:04
✅ 완료

🇰🇷 한글 설명

asteval 1.0.9 미만 버전에서 numpy가 활성화된 기본 Interpreter를 사용할 경우, ctypes 타입에 접근하여 메모리에 직접 접근할 수 있는 취약점이 존재합니다. 공격자는 이를 통해 임의의 프로세스 메모리를 읽거나 수정할 수 있으며, 샌드박스를 탈출하여 코드를 실행하거나 시스템을 중단시킬 수 있습니다.

💡 쉬운 설명

제한된 환경에서 계산을 수행하는 프로그램의 보안 구멍을 이용해, 공격자가 컴퓨터의 중요한 메모리 영역을 몰래 훔쳐보거나 내용을 바꿀 수 있는 문제입니다. 이를 통해 해커가 프로그램의 통제를 벗어나 컴퓨터를 마음대로 조작할 위험이 있습니다.

🇺🇸 원문 (English)

asteval is a Python expression evaluator designed for restricted execution. Prior to 1.0.9, in asteval/astutils.py, the default Interpreter with numpy enabled exposes a ctypes type and permits from_address memory access. safe_getattr blocks the ctypes module but not reachable ctypes type objects, while attribute assignments use unfiltered setattr instead of safe_setattr. An attacker-controlled expression can derive an address with id, read memory through from_address, and write through an attribute assignment. The expression can read or corrupt arbitrary process memory, escape the intended sandbox, execute code, disclose secrets, or crash the host process. This issue is fixed in version 1.0.9.

📍 영향받는 시스템

asteval 1.0.9 미만 버전 (numpy 활성화 시)

⚔️ 공격 벡터

공격자가 제어 가능한 수식을 입력하여 ctypes를 통해 임의의 메모리 주소에 접근 및 쓰기 수행

🛡️ 대응 방법

asteval 라이브러리를 1.0.9 버전 이상으로 업데이트

🔧 검증 코드

출력된 버전 번호가 1.0.9보다 낮으면 취약한 상태입니다.

Shell / Script
pip show asteval | grep Version

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Python