🇰🇷 한글 설명
gonic은 Subsonic API를 구현한 오픈소스 음악 스트리밍 서버입니다. 0.21.0 이전 버전에서는 ServeCreateOrUpdatePlaylist의 로직 오류와 Store.Write의 경로 검증 부재로 인해, 인증된 일반 사용자도 서버의 임의 절대 경로에 M3U 파일을 쓸 수 있으며 0o777 권한의 디렉터리를 생성할 수 있습니다. 이 취약점은 CVE-2026-49338, CVE-2026-49339와 독립적입니다.
💡 쉬운 설명
일반 사용자 계정으로도 음악 서버의 원하는 위치에 파일을 만들 수 있는 문제입니다. 이를 악용하면 서버 파일 시스템의 중요한 위치가 변조될 수 있습니다.
🇺🇸 원문 (English)
gonic is a music streaming server / free-software subsonic server API implementation. Prior to version 0.21.0, a logic error in `ServeCreateOrUpdatePlaylist` allows any authenticated Subsonic user (including non-admin) to write playlist M3U content to an attacker-controlled absolute filesystem path on the gonic host, and to create intermediate directories with `0o777` permissions. The bug is independent of CVE-2026-49338 and CVE-2026-49339. It is an unreachable guard clause combined with no path containment in `Store.Write`. Version 0.21.0 patches the issue.
📍 영향받는 시스템
gonic 0.21.0 미만 버전
⚔️ 공격 벡터
인증된 Subsonic 사용자가 플레이리스트 생성/수정 요청에 임의 절대 경로를 지정하여 서버 파일 시스템에 쓰기
🛡️ 대응 방법
gonic을 0.21.0 이상으로 업데이트
🔧 검증 코드
출력된 버전이 0.21.0 미만이면 취약하므로 0.21.0 이상으로 업데이트가 필요하며, 명령이 실패하면 gonic 설치 경로를 직접 확인해야 합니다.
gonic version 2>/dev/null || ./gonic --version 2>/dev/null