🔍 CVE-2026-120063

5.9
CVSS Score
MEDIUM
2026-11-02
2026-11-02 20:17
✅ 완료

🇰🇷 한글 설명

psqlODBC 드라이버가 스키마 또는 테이블 이름을 128바이트 스택 버퍼에 인용할 때, 길이 검사가 부족하여 긴 이름의 경우 버퍼 끝을 최대 2바이트 넘어서 쓸 수 있습니다. 또한 @@IDENTITY 재작성 과정에서 서버가 보낸 컬럼 이름으로 버퍼 끝을 1바이트 넘어서 쓸 수 있으며, 18.00.0006 이전 버전이 영향을 받습니다.

💡 쉬운 설명

데이터베이스 연결 드라이버가 긴 이름을 처리할 때 메모리 경계를 넘어 데이터를 쓰는 결함입니다. 신뢰할 수 없는 SQL을 전달하는 애플리케이션은 프로세스 메모리가 손상될 수 있습니다.

🇺🇸 원문 (English)

When psqlODBC quotes a schema or table name into a 128-byte stack buffer, its length check lets it write up to two bytes past the end of the buffer for a long name. The names come from the application's SQL text: the table of a statement the driver parses to describe its columns, and the target of the last INSERT when the driver rewrites SELECT @@IDENTITY. In the @@IDENTITY rewrite, a column name sent by the server can also write one byte past the buffer. The bytes written past the buffer are a double quote and a NUL. An application that forwards untrusted SQL text to the driver exposes its process to stack corruption. Versions before psqlODBC 18.00.0006 are affected.

📍 영향받는 시스템

psqlODBC 18.00.0006 이전 버전 (PostgreSQL ODBC 드라이버)

⚔️ 공격 벡터

공격자가 애플리케이션을 통해 긴 테이블/스키마 이름이 포함된 조작된 SQL 텍스트를 드라이버에 전달하여 스택 버퍼를 손상시킴

🛡️ 대응 방법

psqlODBC를 18.00.0006 이상으로 업그레이드하고, 신뢰할 수 없는 SQL 입력을 검증 또는 매개변수화하여 처리

🔧 검증 코드

출력된 버전이 18.00.0006 미만이면 취약하므로 업그레이드가 필요하며, 아무 결과도 없으면 psqlODBC가 설치되지 않은 것입니다.

Shell / Script
dpkg -l | grep -i psqlodbc 2>/dev/null || odbcinst -q -d 2>/dev/null | grep -i postgres

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

IBM WebSphere Application Server