🔍 CVE-2025-68668

9.9
CVSS Score
CRITICAL
2025-12-26
2026-10-13 10:10
✅ 완료

🇰🇷 한글 설명

n8n 워크플로우 자동화 플랫폼의 Python 코드 노드에서 Pyodide를 사용하는 샌드박스 우회 취약점

💡 쉬운 설명

n8n 워크플로우 자동화 플랫폼의 Python 코드 노드에서 샌드박스를 우회하여 호스트 시스템에서 임의의 명령을 실행할 수 있는 취약점이 있습니다. 이 취약점은 인증된 사용자가 워크플로우를 생성하거나 수정할 수 있는 경우에 발생합니다.

🇺🇸 원문 (English)

n8n is an open source workflow automation platform. From version 1.0.0 to before 2.0.0, a sandbox bypass vulnerability exists in the Python Code Node that uses Pyodide. An authenticated user with permission to create or modify workflows can exploit this vulnerability to execute arbitrary commands on the host system running n8n, using the same privileges as the n8n process. This issue has been patched in version 2.0.0. Workarounds for this issue involve disabling the Code Node by setting the environment variable NODES_EXCLUDE: "[\"n8n-nodes-base.code\"]", disabling Python support in the Code node by setting the environment variable N8N_PYTHON_ENABLED=false, which was introduced in n8n version 1.104.0, and configuring n8n to use the task runner based Python sandbox via the N8N_RUNNERS_ENABLED and N8N_NATIVE_PYTHON_RUNNER environment variables.

📍 영향받는 시스템

n8n 버전 1.0.0부터 2.0.0 이전 버전

⚔️ 공격 벡터

인증된 사용자가 워크플로우를 생성하거나 수정하여 Python 코드 노드를 사용하여 임의의 명령을 실행

🛡️ 대응 방법

n8n 버전 2.0.0으로 업그레이드하거나, Code Node를 비활성화하거나, Python 지원을 비활성화하거나, task runner 기반 Python 샌드박스를 사용

🔧 검증 코드

로컬 시스템에서 n8n 버전을 확인하여 취약점 여부를 점검합니다. n8n이 설치되어 있는 경우에만 사용할 수 있습니다. 코드를 실행하기 전에 n8n이 설치되어 있는지 확인하고, 코드를 실행한 결과를 확인하여 취약점 여부를 판단합니다.

Shell / Script
import os
import sys
n8n_version = os.popen("n8n --version").read().strip()
if n8n_version < "2.0.0":
    print("{\"result\": \"취약\", \"reason\": \"n8n 버전이 2.0.0 미만입니다.\"}")
else:
    print("{\"result\": \"양호\", \"reason\": \"n8n 버전이 2.0.0 이상입니다.\"}")

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Python