🇰🇷 한글 설명
Wazuh의 remoted 데몬에서 발생하는 스택 기반의 경계 외 쓰기(Out-of-bounds write) 취약점입니다. 암호화된 에이전트 메시지를 처리하는 과정에서 압축 해제 시 버퍼 크기를 초과하는 null 바이트가 기록되어 서비스 중단을 초래할 수 있습니다.
💡 쉬운 설명
Wazuh 보안 프로그램이 데이터를 압축 해제할 때, 정해진 공간보다 더 많은 데이터를 쓰려고 시도하는 오류가 있습니다. 이로 인해 프로그램이 갑자기 멈추거나 통신이 끊길 수 있습니다.
🇺🇸 원문 (English)
Wazuh is a free and open source platform used for threat prevention, detection, and response. From 1.0.0 until 4.14.6 and 5.0.0-beta2, HandleSecureMessage() in src/remoted/secure.c passes a pointer inside its stack buffer to ReadSecMSG(), and src/os_crypto/shared/msgs.c decompresses up to OS_MAXSTR bytes at that offset. For an encrypted agent message on TCP port 1514 that expands to 65,536 bytes, os_zlib_uncompress() writes a terminating null byte beyond the end of the destination buffer. The resulting stack out-of-bounds write in the root-level remoted daemon can crash message processing and disrupt agent communications. This issue is fixed in versions 4.14.6 and 5.0.0-beta2.
📍 영향받는 시스템
Wazuh 1.0.0 ~ 4.14.6 및 5.0.0-beta2 미만 버전
⚔️ 공격 벡터
TCP 1514 포트를 통해 특수하게 조작된 암호화된 에이전트 메시지를 전송
🛡️ 대응 방법
Wazuh를 4.14.6 또는 5.0.0-beta2 이상의 최신 버전으로 업데이트
🔧 검증 코드
출력된 버전이 4.14.6 미만이거나 5.0.0-beta2 미만인 경우 취약한 버전입니다.
wazuh-agent --version 2>/dev/null || wazuhd --version 2>/dev/null | grep -E '4\[0-9]\.[0-9]{2}'