WebSocket 압축 폭탄으로 인한 메모리 사용 문제 수정
medium2026-02-23 릴리스 뒤 보안 공지 GHSA-qrvq-68c2-7grw 공개
이전에는 압축률이 매우 높은 프레임을 압축 해제할 때, 서버가 최대 페이로드 크기 초과를 이유로 거부하기 전에 매우 큰 버퍼가 만들어질 수 있었습니다. 이로 인해 메모리를 과도하게 사용하고 서버가 종료될 위험이 있었습니다. 이제 압축 해제는 설정된 최대 페이로드 크기에서 중단됩니다. 최대 크기를 지정하지 않으면 기본 최대 크기를 적용하며, ErrMaxPayload를 반환합니다.
원문 보기
- WebSocket connections will now correctly limit the buffer size during decompression (#7625, thanks to Pavel Kokout at Aisle Research)github.com/nats-io/nats-server/releases/tag/v2.12.3
This was fixed in the v2.11 series with v2.11.12 and in the v2.12 series with v2.12.3.github.com/nats-io/nats-server/security/advisories/GHSA-qrvq-68c2-7grw