WR 株式会社WR 松戸のホームページ制作・社内システム・IT相談

株式会社WR

千葉県松戸市
松戸・柏・市川・流山・船橋 対応

ホーム›脆弱性情報›PostgreSQL›CVE-2026-107315

警告 CVSS 5.3 PostgreSQL CVE-2026-107315 公表 2026年10月8日

PostgreSQLのpgjdbcにデータ混入の脆弱性

PostgreSQL — CVE-2026-107315

自分のサイトが該当するか無料診断 → 原文を見る(NVD(米国 脆弱性データベース))↗

どんな問題か

PostgreSQLのJDBCドライバpgjdbcで、長さ指定と実データがずれたときに、古い通信内容が混ざることがあります。保存した値に、以前のSQLや別リクエストの内容が入るおそれがあります。

放置するとどうなるか

個人情報や内部情報がデータベースに混ざって保存され、情報漏えいにつながるおそれがあります。共有接続では、別の利用者の内容が影響する可能性があります。

今すぐやること

pgjdbcを42.7.14以上に更新してください。長さ指定を使う処理がある場合は、アプリ側の実装も合わせて見直し、保守会社に確認しましょう。

自分のサイトが該当するかの確認手順

  1. お使いのサーバー・プログラムに PostgreSQL が使われているか、制作会社・保守会社・サーバー会社に確認します(管理画面やサーバーのバージョン表示でも分かります)。
  2. バージョンが「42.7.4 through 42.7.13」に当てはまるか確認します。
  3. 当てはまる場合は、修正版へのアップデートを依頼します。レンタルサーバーの場合はサーバー会社側で対応済みのこともあるので、お知らせを確認してください。
原文(英語)を表示
pgjdbc, the PostgreSQL JDBC Driver, versions 42.7.4 through 42.7.13 pads a value that is shorter than its declared length with bytes left in its send buffer instead of zeros, and the server stores those bytes as part of the value. The bytes are messages the driver sent earlier on the same connection: SQL text and parameter values of recent statements, which on a pooled connection can come from other requests. Each padded value can carry up to 8192 bytes of this traffic, or 16320 bytes on a connection with GSS encryption. The padding happens when an application declares a length larger than the data it supplies, through PreparedStatement.setObject with a ByteStreamWriter, CopyIn.writeToCopy, PGCopyOutputStream.write, LargeObject.write, or Blob.setBytes. The driver accepts these calls without an error. An attacker who can make the application store such a value and read it back can collect earlier traffic. Applications whose declared lengths always match their data are not affected. Versions 42.7.3 and earlier pad with zeros.

※ 解説は NVD(米国 脆弱性データベース) の公表内容をもとにAIが生成しています。対象バージョン・修正版などの正確な情報は、必ず原文をご確認ください。

無料で相談する →