🔍 CVE-2025-68697

7.1
CVSS Score
HIGH
2025-12-26
2026-10-13 09:10
✅ 완료

🇰🇷 한글 설명

n8n 2.0.0 미만 버전의 셀프 호스팅 환경에서, 레거시 JavaScript 실행 모드를 사용하는 Code 노드를 통해 인증된 사용자가 내부 헬퍼 함수를 호출할 수 있는 취약점입니다. 이를 통해 워크플로우 편집 권한을 가진 사용자가 n8n 프로세스 권한으로 호스트 파일 시스템의 파일을 읽거나 쓸 수 있습니다.

💡 쉬운 설명

n8n 자동화 도구의 코드 작성 기능을 악용하여, 권한이 있는 사용자가 서버의 파일을 몰래 읽거나 수정할 수 있는 보안 결함입니다. 이로 인해 서버 내의 중요한 정보가 유출되거나 데이터가 변조될 위험이 있습니다.

🇺🇸 원문 (English)

n8n is an open source workflow automation platform. Prior to version 2.0.0, in self-hosted n8n instances where the Code node runs in legacy (non-task-runner) JavaScript execution mode, authenticated users with workflow editing access can invoke internal helper functions from within the Code node. This allows a workflow editor to perform actions on the n8n host with the same privileges as the n8n process, including: reading files from the host filesystem (subject to any file-access restrictions configured on the instance and OS/container permissions), and writing files to the host filesystem (subject to the same restrictions). This issue has been patched in version 2.0.0. Workarounds for this issue involve limiting file operations by setting N8N_RESTRICT_FILE_ACCESS_TO to a dedicated directory (e.g., ~/.n8n-files) and ensure it contains no sensitive data, keeping N8N_BLOCK_FILE_ACCESS_TO_N8N_FILES=true (default) to block access to .n8n and user-defined config files, and disabling high-risk nodes (including the Code node) using NODES_EXCLUDE if workflow editors are not fully trusted.

📍 영향받는 시스템

n8n self-hosted instances (version prior to 2.0.0) using legacy Code node execution mode

⚔️ 공격 벡터

인증된 워크플로우 편집자가 Code 노드 내에서 내부 헬퍼 함수를 호출하여 파일 시스템에 접근

🛡️ 대응 방법

n8n 버전을 2.0.0 이상으로 업데이트하거나, N8N_RESTRICT_FILE_ACCESS_TO 설정을 통해 파일 접근 범위를 제한하십시오.

🔧 검증 코드

출력된 버전 정보가 2.0.0 미만(예: 1.x.x)이면 취약한 상태이며, 2.0.0 이상이면 안전합니다.

Shell / Script
curl -s http://localhost:5678/api/v1/version | grep -E '"version": "[0-1]\.'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Magento Open Source