🇰🇷 한글 설명
MongoDB Python Driver의 BSON 문서 인코딩 구성 요소에서 정수 오버플로 취약점이 발견되었습니다. 공격자가 매우 큰 데이터를 입력할 경우, 부호 있는 32비트 정수 연산 오류로 인해 할당된 버퍼 범위를 벗어난 메모리 쓰기가 발생할 수 있습니다.
💡 쉬운 설명
프로그램이 숫자를 계산하는 과정에서 너무 큰 숫자를 처리하다 오류가 발생하는 문제입니다. 이를 통해 해커가 컴퓨터의 메모리 영역을 마음대로 조작하여 프로그램을 망가뜨리거나 공격할 수 있습니다.
🇺🇸 원문 (English)
An integer overflow in the BSON document encoding component of the MongoDB Python Driver's bundled native extension may occur when a single document is built from an unusually large amount of caller-supplied data. Size arithmetic is performed in a signed 32-bit type, and the guard meant to catch the overflow is written in a form whose behavior is not defined by the C language standard. A party with no privileges who can place a very large value into data that an application encodes may, depending on how the native extension was built, cause a write outside the bounds of an allocated buffer inside the application's own process.
📍 영향받는 시스템
MongoDB Python Driver (BSON native extension 포함 버전)
⚔️ 공격 벡터
권한이 없는 공격자가 애플리케이션이 인코딩하는 데이터에 매우 큰 값을 삽입하여 공격
🛡️ 대응 방법
MongoDB Python Driver를 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 pymongo의 버전을 확인하여 취약점이 해결된 최신 버전인지 대조합니다.
pip show pymongo | grep -E 'Version'