🔍 CVE-2026-81856

0.0
CVSS Score
UNKNOWN
2026-10-12
2026-10-16 18:18
✅ 완료

🇰🇷 한글 설명

hexpm hex 패키지 관리자에서 이스케이프, 메타 또는 제어 시퀀스를 적절히 중화하지 못해 발생하는 취약점입니다. 악의적인 패키지 게시자가 터미널 제어 시퀀스를 주입하여 사용자 화면에 표시되는 URL, 설명, 명령어를 위조하거나 클립보드 내용을 조작할 수 있습니다.

💡 쉬운 설명

나쁜 의도를 가진 사람이 만든 패키지를 설치하거나 정보를 조회할 때, 컴퓨터 화면에 가짜 정보를 보여주거나 몰래 클립보드 내용을 바꿀 수 있는 보안 결함입니다. 화면에 보이는 글자가 실제 내용과 다를 수 있어 사용자를 속일 위험이 있습니다.

🇺🇸 원문 (English)

Improper Neutralization of Escape, Meta, or Control Sequences vulnerability in hexpm hex allows a malicious package publisher or a hostile repository server to inject terminal control sequences into the output of Mix tasks. Hex prints strings supplied by the package repository and the documentation search service straight to the terminal through Hex.Shell.info/1 and Hex.Shell.error/1, neutralizing no control characters. Affected sinks span package metadata and configuration snippets in mix hex.info, search results in mix hex.package search and mix hex.search, owner and organization listings, publish and sponsor URLs, the authenticated username in mix hex.user, policy identities in mix hex.policy, and API error bodies rendered by Hex.Utils.print_error_result/1. A malicious package can embed ANSI escape sequences (cursor movement, line erase, carriage returns, OSC 52 clipboard writes) or Unicode bidirectional overrides in any of those fields, so the bytes reach the terminal unchanged, forging displayed URLs, package descriptions and suggested commands, concealing real output, or writing to the clipboard. No authentication or privileged position is required; only publishing a package. This issue affects hex: from 0.0.1 before 2.5.2.

📍 영향받는 시스템

hex: 0.0.1 미만 2.5.2 버전

⚔️ 공격 벡터

악의적인 패키지 메타데이터나 검색 결과에 ANSI 이스케이프 시퀀스 또는 유니코드 제어 문자를 포함하여 배포

🛡️ 대응 방법

hex 패키지를 2.5.2 버전 이상으로 업데이트

🔧 검증 코드

출력된 버전 번호가 2.5.2보다 낮은지 확인하십시오.

Shell / Script
mix hex.info | grep -E 'hex' | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' || echo 'Not found'

💻 영향받는 소프트웨어

UniFi OS Server