🔍 CVE-2026-47706

5.3
CVSS Score
MEDIUM
2026-06-04
2026-07-22 20:10
✅ 완료

🇰🇷 한글 설명

Strawberry GraphQL 라이브러리의 QueryDepthLimiter 확장 기능에서 프래그먼트 확산(fragment spreads) 시 순환 참조를 탐지하지 못하는 취약점이 발견되었습니다. 공격자가 순환 참조를 포함한 쿼리를 전송하면 determine_depth 함수가 무한 재귀에 빠져 RecursionError를 발생시키고 검증 프로세스를 중단시킵니다. 이로 인해 애플리케이션 수준의 서비스 거부(DoS) 상태가 발생할 수 있습니다.

💡 쉬운 설명

GraphQL API를 만들 때 사용하는 도구에서 자기 자신을 계속 참조하는 잘못된 명령어를 처리하지 못하는 문제가 있습니다. 공격자가 이 명령어를 보내면 프로그램이 무한 루프에 빠져 서비스가 멈출 수 있습니다.

🇺🇸 원문 (English)

Strawberry GraphQL is a library for creating GraphQL APIs. In versions 0.71.0 through 0.315.6, the QueryDepthLimiter extension is vulnerable to an Application-level DOS due to a lack of cycle detection in fragment spreads. When a query contains circular fragment references the determine_depth function enters an infinite recursion, leading to a RecursionError and crashing the validation process. Version 0.315.7 patches the issue.

📍 영향받는 시스템

Strawberry GraphQL versions 0.71.0 through 0.315.6

⚔️ 공격 벡터

순환 참조(circular fragment references)를 포함한 악의적인 GraphQL 쿼리 전송

🛡️ 대응 방법

Strawberry GraphQL을 버전 0.315.7 이상으로 업데이트

🔧 검증 코드

출력된 버전이 0.315.6 이하이면 취약한 상태이며, 0.315.7 이상이면 안전합니다.

Shell / Script
pip show strawberry-graphql | grep Version

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Spring for GraphQL