🇰🇷 한글 설명
PostgreSQL 8.0.1 및 이전 버전의 gram.y 파일에서 여러 버퍼 오버플로우 취약점이 발견되었습니다. 공격자는 SQL 문이나 SELECT/FETCH 문의 INTO 변수를 대량으로 포함시켜 임의의 코드를 실행할 수 있습니다.
💡 쉬운 설명
데이터베이스에 처리할 수 있는 양보다 훨씬 많은 양의 변수를 한꺼번에 보내 메모리를 넘치게 만드는 취약점입니다. 이를 통해 공격자가 시스템의 권한을 획득하고 악성 명령을 내릴 수 있습니다.
🇺🇸 원문 (English)
Multiple buffer overflows in gram.y for PostgreSQL 8.0.1 and earlier may allow attackers to execute arbitrary code via (1) a large number of variables in a SQL statement being handled by the read_sql_construct function, (2) a large number of INTO variables in a SELECT statement being handled by the make_select_stmt function, (3) a large number of arbitrary variables in a SELECT statement being handled by the make_select_stmt function, and (4) a large number of INTO variables in a FETCH statement being handled by the make_fetch_stmt function, a different set of vulnerabilities than CVE-2005-0245.
📍 영향받는 시스템
PostgreSQL 8.0.1 및 이전 버전
⚔️ 공격 벡터
대량의 변수가 포함된 특수하게 조작된 SQL 쿼리 전송
🛡️ 대응 방법
PostgreSQL 최신 버전으로 업데이트 또는 보안 패치 적용
🔧 검증 코드
명령어 실행 결과 버전이 8.0.1 이하로 표시되면 해당 취약점에 노출되었을 가능성이 큽니다.
psql --version | grep -E '8\.0\.[0-1]'