🔍 CVE-2026-0863

8.5
CVSS Score
HIGH
2026-01-18
2026-06-17 10:11
✅ 완료

🇰🇷 한글 설명

n8n의 python-task-executor 샌드박스 제한을 우회하여 공격자가 임의의 제한되지 않은 파이썬 코드를 실행할 수 있는 취약점

💡 쉬운 설명

n8n의 코드 블록을 통해 인증된 사용자가 기본 권한으로 임의의 파이썬 코드를 실행할 수 있는 취약점이 발견되었습니다. 이는 n8n 인스턴스 전체를 장악할 수 있습니다. 그러나 '외부' 실행 모드에서는 사이드카 컨테이너 내에서 코드가 실행되어 영향이 줄어듭니다.

🇺🇸 원문 (English)

Using string formatting and exception handling, an attacker may bypass n8n's python-task-executor sandbox restrictions and run arbitrary unrestricted Python code in the underlying operating system. The vulnerability can be exploited via the Code block by an authenticated user with basic permissions and can lead to a full n8n instance takeover on instances operating under "Internal" execution mode. If the instance is operating under the "External" execution mode (ex. n8n's official Docker image) - arbitrary code execution occurs inside a Sidecar container and not the main node, which significantly reduces the vulnerability impact.

📍 영향받는 시스템

n8n 인스턴스 (Internal 및 External 실행 모드)

⚔️ 공격 벡터

인증된 사용자에 의해 코드 블록을 통해 공격

🛡️ 대응 방법

n8n 버전을 최신으로 업데이트하고, 샌드박스 제한을 강화하며, 사용자 권한을 최소화하는 등 보안 조치를 취합니다.

🔧 검증 코드

로컬 시스템에서 n8n이 설치되어 있는지 확인하고, 버전을 확인하여 취약점 여부를 판단합니다. 필요한 권한: n8n 실행 권한, 의존성: n8n 설치

Shell / Script
import subprocess
result = subprocess.run(['n8n', '--version'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
if result.returncode == 0:
    version = result.stdout.decode('utf-8').strip()
    if version < '0.200.0':
        print({"result": "취약", "reason": "n8n 버전이 낮음"})
    else:
        print({"result": "양호", "reason": "n8n 버전이 최신"})
else:
    print({"result": "확인 실패", "reason": "n8n 명령어 실행 실패"})

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Docker