🔍 CVE-2026-65651

0.0
CVSS Score
UNKNOWN
2026-09-21
2026-09-22 19:40
✅ 완료

🇰🇷 한글 설명

temporalio/sqlparser 라이브러리가 중첩된 단항 표현식에 대한 제한 없이 깊은 추상 구문 트리(AST)를 생성하여 Go 스택 오버플로를 유발할 수 있습니다. 공격자가 제어하는 SQL을 사용하는 Temporal Server의 특정 경로에서 이 문제가 발생하며, 이는 프로세스 종료를 통한 서비스 거부(DoS)로 이어질 수 있습니다.

💡 쉬운 설명

복잡하게 꼬인 SQL 문장을 보내면 프로그램이 이를 처리하다가 과부하로 인해 갑자기 꺼져버리는 문제입니다. 이로 인해 서비스가 중단되어 정상적인 이용이 어려워질 수 있습니다.

🇺🇸 원문 (English)

temporalio/sqlparser accepts SQL containing deeply nested unary expressions and can return a correspondingly deep abstract syntax tree without enforcing an applicable nesting limit. The library's String and Walk operations recursively traverse that tree. An application that parses attacker-controlled SQL and later formats or walks the returned tree can encounter a runtime-fatal Go stack overflow that terminates the process; Go panic recovery cannot contain this condition. Temporal Server passes caller-controlled query input through the affected parser in archival, visibility, and worker-query paths. In affected validation paths, the Server recursively formats an invalid expression while constructing an error. In a supported authenticated deployment, a caller with namespace read permission can terminate the receiving Frontend or Matching process. The dynamically confirmed ListWorkers route additionally requires at least one retained worker heartbeat. Repeated requests can sustain a denial of service. The issue affects availability only; no confidentiality or integrity impact was identified.

📍 영향받는 시스템

Temporal Server (archival, visibility, worker-query paths 사용 시)

⚔️ 공격 벡터

네임스페이스 읽기 권한을 가진 사용자가 깊게 중첩된 단항 표현식이 포함된 SQL 쿼리를 전송

🛡️ 대응 방법

sqlparser 라이브러리를 중첩 제한 기능이 포함된 최신 버전으로 업데이트하거나 입력값에 대한 검증 로직을 추가

🔧 검증 코드

출력된 라이브러리 버전이 취약점이 해결된 패치 버전인지 확인

Shell / Script
go list -m temporalio/sqlparser

💻 영향받는 소프트웨어

IBM WebSphere Application Server