WizがGoogle Cloudに参加:共に魔法を作り出す

CVE-2026-134846: 
Java 脆弱性分析と緩和策

概要

CVE-2026-134846 is a GSS encryption flaw in pgjdbc (the PostgreSQL JDBC Driver) that allows a network-positioned attacker to replay earlier server packets and cause the driver to stop encrypting outbound SQL traffic. The vulnerability affects versions 42.2.15 through 42.7.14 of org.postgresql:postgresql, and was disclosed on November 23, 2026. Version 42.7.15 contains the fix. It carries a CVSS v3.1 base score of 6.5 (Medium/High) (GitHub Advisory).

技術的詳細

The vulnerability has two related root causes, both classified under CWE-294 (Authentication Bypass by Capture-replay) and CWE-319 (Cleartext Transmission of Sensitive Information). First, the driver calls GSSContext.unwrap() but never checks the MessageProp flags it returns — flags that indicate duplicate, out-of-sequence, or gap tokens — so a replayed server packet is silently accepted as a valid response to the current query. Second, the driver shares a single MessageProp instance between its read and write paths; when an incoming integrity-only (non-private) server token clears the privacy flag on that shared object, all subsequent outbound packets from the driver are signed but transmitted in cleartext. Exploitation requires the connection to be configured with gssEncMode=prefer or gssEncMode=require and a server that accepts GSS encryption; the default mode since version 42.2.18 is allow, which does not initiate GSS encryption and is therefore unaffected (GitHub Advisory).

影響

A network-path attacker can inject a previously captured server reply as the answer to a different, current query, effectively poisoning query results and potentially causing the application to act on falsified data. Additionally, by sending a single integrity-only packet, a malicious server (or attacker with session-key access) can cause the driver to transmit all subsequent SQL statements and bind parameters in cleartext, exposing credentials, query logic, and sensitive data to passive eavesdroppers on the network. The confidentiality impact is rated Low and the integrity impact High, with no availability impact (GitHub Advisory).

利用可能性

A proof-of-concept reproduction sequence is publicly documented in the official GitHub Security Advisory, demonstrating that a malicious backend can send a duplicate sealed GSS token ([length][sealed token T] [length][sealed token T]) to trigger the replay acceptance bug. No weaponized exploit code or in-the-wild exploitation has been observed as of the disclosure date. The EPSS score is approximately 0.108%, reflecting low but non-zero probability of near-term exploitation. The vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities (KEV) catalog (GitHub Advisory).

エクスプロイテーションのステップ

  1. Identify target connections: Locate Java applications using pgjdbc versions 42.2.15–42.7.14 that connect to PostgreSQL with gssEncMode=prefer or gssEncMode=require and where GSS encryption is successfully negotiated with the server.
  2. Position on the network path: Gain a man-in-the-middle position between the Java application (JDBC client) and the PostgreSQL server, or control a malicious PostgreSQL-compatible server endpoint.
  3. Capture a sealed GSS token: Observe the GSS-encrypted connection and record a legitimate sealed server token T from an earlier exchange in the same connection session.
  4. Replay the captured token: Inject the captured token a second time into the backend-to-client stream: [length][sealed token T] [length][sealed token T]. Because the driver does not check MessageProp duplicate/out-of-sequence flags from GSSContext.unwrap(), it delivers both copies to the protocol parser and accepts the replayed token as the response to the current query.
  5. Trigger encryption downgrade (optional): Send a single integrity-only (non-private) server packet. This clears the shared MessageProp privacy flag, causing the driver to send all subsequent SQL statements and bind parameters signed but unencrypted.
  6. Harvest plaintext data: Passively capture the now-unencrypted SQL traffic to read credentials, query parameters, and sensitive data transmitted by the application (GitHub Advisory).

妥協の兆候

  • Network: Duplicate or out-of-order GSS-wrapped packets observed on the wire between the JDBC client and PostgreSQL server on port 5432; unencrypted PostgreSQL wire protocol traffic (plaintext SQL messages) on connections that were previously GSS-encrypted.
  • Logs: Application-level errors or unexpected query results that do not match expected server responses, potentially indicating replayed stale data; absence of GSS encryption negotiation errors despite anomalous packet sequences in network captures.
  • Process/Application Behavior: Java application returning stale or incorrect query results inconsistent with current database state; unexpected behavior in applications relying on query response integrity when gssEncMode=prefer or require is configured.

緩和策と回避策

The primary remediation is to upgrade pgjdbc (org.postgresql:postgresql) to version 42.7.15 or later, which correctly validates GSSContext.unwrap() token state flags and uses separate MessageProp instances for reading and writing (GitHub Advisory). As an interim workaround for systems that cannot patch immediately, set gssEncMode=disable in the JDBC connection configuration to prevent GSS encryption from being initiated — note this removes GSS encryption protections entirely. Additionally, network segmentation to restrict access to the network path between the application and the PostgreSQL server can reduce the attack surface by preventing untrusted parties from intercepting or injecting traffic.

コミュニティの反応

The vulnerability was assigned by the PostgreSQL project and published via GitHub's security advisory system on November 23, 2026. Notably, the advisory credits Anthropic (via the patrickmgarrity/Anthropic-Credited-CVEs repository), suggesting AI-assisted vulnerability discovery. Detection coverage was added by Qualys (detection ID 6783110) and Tenable (Nessus plugin 385433 and cloud security plugin 484134) shortly after disclosure. No significant public controversy or widespread social media discussion has been observed beyond standard vulnerability tracking aggregators (GitHub Advisory).

追加リソース

Linuxディストリビューションの修正状況

主要なLinuxディストリビューションとそのリリース間での可用性を修正しましょう。

Debian

修正済

bookworm

libpgjava

影響

sid

libpgjava: 42.7.15-1

修正済

trixie

libpgjava

影響

Ubuntu

不明

bionic (esm-apps)

libpgjava

不明

devel

libpgjava

不明

focal (esm-apps)

libpgjava

不明

jammy

libpgjava

不明

jammy (esm-apps)

libpgjava

不明

noble

libpgjava

不明

noble (esm-apps)

libpgjava

不明

resolute

libpgjava

不明

RHEL / CentOS

影響

RHEL 9

影響なし

RHEL 10

影響なし

ソース: この報告書はAIを用いて作成されました

関連 Java 脆弱性:

CVE ID

重大度

スコア

テクノロジー

コンポーネント名

CISA KEVのエクスプロイト

修正あり

出版日

CVE-2026-134844HIGH7.5
  • Java logoJava
  • org.postgresql:postgresql
いいえはいNov 23, 2026
CVE-2026-134848HIGH7.4
  • Java logoJava
  • org.postgresql:postgresql
いいえはいNov 23, 2026
CVE-2026-134845HIGH7.4
  • Java logoJava
  • flyway-fips
いいえはいNov 23, 2026
CVE-2026-134847MEDIUM6.5
  • Java logoJava
  • flyway
いいえはいNov 23, 2026
CVE-2026-134846MEDIUM6.5
  • Java logoJava
  • libpgjava
いいえはいNov 23, 2026

無料脆弱性評価

クラウドセキュリティの姿勢をベンチマークしましょう

9つのセキュリティ領域にわたるクラウドセキュリティの実践を評価し、リスクレベルをベンチマークし、防御のギャップを特定しましょう。

評価のリクエスト

Wizのその他のリソース

パーソナライズされたデモを見る

実際に Wiz を見てみませんか?​

"私が今まで見た中で最高のユーザーエクスペリエンスは、クラウドワークロードを完全に可視化します。"
デビッド・エストリックCISO (最高情報責任者)
"Wiz を使えば、クラウド環境で何が起こっているかを 1 つの画面で確認することができます"
アダム・フレッチャーチーフ・セキュリティ・オフィサー
"Wizが何かを重要視した場合、それは実際に重要であることを私たちは知っています。"
グレッグ・ポニャトフスキ脅威および脆弱性管理責任者