🔍 CVE-2026-4408

9.0
CVSS Score
CRITICAL
2026-05-28
2026-10-08 21:18
✅ 완료

🇰🇷 한글 설명

Samba의 'check password script' 기능에서 %u 치환 문자 사용 시 셸 메타문자가 적절히 이스케이프되지 않아 원격 명령 실행 취약점이 발생합니다. 이는 samba-dcerpcd 서비스가 시스템 서비스로 실행되는 비표준 구성에서 주로 영향을 미칩니다.

💡 쉬운 설명

Samba 서버 설정 오류로 인해 해커가 원격에서 서버 명령을 실행할 수 있는 치명적인 구멍이 발견되었습니다. 특히 비밀번호 확인 스크립트 설정 시 사용자 이름 처리가 잘못되면 공격이 가능합니다.

🇺🇸 원문 (English)

A flaw was found in Samba. A remote attacker can exploit a misconfiguration in Samba file servers and classic domain controllers that use the "check password script" feature. If this script is configured with the %u substitution character, the client-controlled username is passed without proper escaping of shell meta-characters. This vulnerability allows an attacker to achieve remote command execution on the affected system. This issue primarily affects non-standard configurations where the "check password script" is used with %u and the samba-dcerpcd service is started as a system service.

📍 영향받는 시스템

Samba file servers 및 classic domain controllers (samba-dcerpcd 서비스 사용 시)

⚔️ 공격 벡터

원격에서 Samba의 check password script 구성을 악용하여 셸 메타문자를 통해 명령어 주입

🛡️ 대응 방법

check password script에서 %u 치환 문자 사용을 피하거나, 사용자 입력을 엄격하게 검증 및 이스케이프 처리

🔧 검증 코드

명령어 실행 시 samba-dcerpcd가 활성화되어 있고 smb.conf에서 %u가 포함된 check password script 설정이 발견되면 취약한 구성일 가능성이 높습니다.

Shell / Script
systemctl is-active samba-dcerpcd && grep -r 'check password script' /etc/samba/smb.conf | grep '%u'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Samba
🇰🇷 KISA(한국인터넷진흥원) 보안 권고 이 CVE에 대한 한국 공식 권고 (1건)
Samba 제품 보안 업데이트 권고 P4
📅 2026-06-05 · sec_notice
Samba 제품에서 권한 제어 미흡 및 OS 커맨드 인젝션 등 4종의 보안 취약점이 발견되었습니다. 해당 취약점에 영향을 받는 Samba 사용자는 최신 보안 버전(4.24.3, 4.23.8, 4.22.10 등)으로 즉시 업데이트를 수행해야 합니다.
KISA 원문 →