🔍 CVE-2026-107313

4.2
CVSS Score
MEDIUM
2026-10-07
2026-10-08 20:49
✅ 완료

🇰🇷 한글 설명

PostgreSQL JDBC 드라이버의 특정 버전에서 GSS 암호화 사용 시 이전 GSS 전송 버퍼의 내용이 새로운 값의 일부로 전송되는 취약점이 발견되었습니다. 이로 인해 애플리케이션이 의도한 데이터 대신 이전 메시지(SQL 텍스트, 파라미터 등)가 서버에 저장될 수 있습니다. MIT Kerberos 환경에서 버퍼 크기는 16320바이트이며, 특정 메서드를 통해 긴 값을 쓸 때 발생합니다.

💡 쉬운 설명

데이터를 암호화해서 보낼 때, 이전에 보냈던 정보가 섞여 들어가서 엉뚱한 데이터가 데이터베이스에 저장될 수 있는 문제입니다. 보안 연결을 사용하는 환경에서 데이터의 무결성이 깨질 위험이 있습니다.

🇺🇸 원문 (English)

pgjdbc, the PostgreSQL JDBC Driver, versions 42.7.4 and 42.7.5 can send the previous contents of the GSS send buffer in place of the first part of a value on a connection with GSS encryption (gssEncMode=prefer or require), and the server stores the value without an error. The buffer is 16320 bytes with MIT Kerberos. The stored value then holds bytes of the messages the driver sent just before it on the same connection, such as the statement's SQL text, its other parameters, and earlier rows of the same batch, instead of the bytes the application supplied. Values at least as long as the buffer are affected when the driver writes them from a byte array: bind parameters set with setString, setBytes, or a ByteStreamWriter, CopyIn.writeToCopy, and LargeObject.write. Most such writes fail with an ArrayIndexOutOfBoundsException instead. The default, gssEncMode=allow, does not start GSS encryption, and connections without GSS encryption are not affected. Versions 42.7.3 and earlier are not affected, and 42.7.6 fixes the problem.

📍 영향받는 시스템

pgjdbc (PostgreSQL JDBC Driver) versions 42.7.4 and 42.7.5

⚔️ 공격 벡터

GSS 암호화(gssEncMode=prefer 또는 require)가 설정된 연결에서 특정 크기 이상의 데이터를 전송할 때 발생

🛡️ 대응 방법

pgjdbc 버전을 42.7.6 이상으로 업데이트하십시오.

🔧 검증 코드

명령어 결과에 42.7.4 또는 42.7.5 버전이 나타나면 취약한 버전이 사용 중인 것입니다.

Shell / Script
mvn dependency:list | grep -E 'postgresql-jdbc|pgjdbc' | grep -E '42.7.4|42.7.5'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

IBM WebSphere Application Server