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

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

概要

CVE-2026-134844 is a search path hijacking vulnerability in pgjdbc, the PostgreSQL JDBC Driver, classified as High severity. The driver uses unqualified operators, functions, and type names in catalog queries issued by DatabaseMetaData, ResultSetMetaData, and TypeInfoCache, allowing a database role with CREATE privileges on a schema in the application's search_path to inject malicious objects that execute with the application's database privileges. All versions of org.postgresql:postgresql up to and including 42.7.14 are affected; version 42.7.15 resolves the issue. It carries a CVSS v3.1 base score of 7.5 (High) (GitHub Advisory). The advisory was published on November 23, 2026.

技術的詳細

The root cause is CWE-427 (Uncontrolled Search Path Element): pgjdbc's internal catalog queries reference operators, functions, and type names without schema-qualifying them (e.g., pg_catalog.), so PostgreSQL resolves them via the session's search_path rather than exclusively from pg_catalog (GitHub Advisory). An attacker with CREATE on any schema present in the application's search_path can define an operator with an exact type signature match (e.g., oid = int4) backed by an arbitrary PL/pgSQL function; when the application calls a metadata method, the server resolves and executes the attacker's operator under the application role's privileges. A second attack vector exists through TypeInfoCache: it resolves unqualified type names (e.g., interval) by its own ranking, meaning a domain of the same name in another schema — including the temporary schema of a different session, which requires only the default TEMP privilege — can be substituted, and its CHECK constraint runs in the application's session. Exploitation requires the application to invoke metadata methods or use types such as PGInterval.

影響

Successful exploitation allows an attacker-controlled database role to execute arbitrary SQL or PL/pgSQL code with the full privileges of the application's database role, resulting in high confidentiality, integrity, and availability impact (GitHub Advisory). This can lead to unauthorized data access, data modification or deletion, and potential disruption of database availability. The type-name route is particularly broad because it requires only the TEMP privilege, which every PostgreSQL role holds by default, lowering the bar for exploitation significantly.

利用可能性

A proof-of-concept is publicly available in the official GitHub Security Advisory, consisting of SQL statements that create a shadowing operator and function, plus a single Java call to trigger execution (GitHub Advisory). The PoC payload is benign (returns true), but any SQL could be substituted. As of the advisory date, there is no evidence of active in-the-wild exploitation. The EPSS score is approximately 0.0037 (low probability of near-term exploitation), and the vulnerability is not listed in the CISA KEV catalog. Exploitation is not automatable (requires a pre-existing authenticated database foothold), which limits opportunistic mass exploitation.

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

  1. Gain database foothold: Obtain a low-privilege PostgreSQL role that has CREATE privilege on at least one schema included in the target application's search_path (operator/function route), or any role with the default TEMP privilege (type-name route).
  2. Create a malicious function in the accessible schema:
    CREATE FUNCTION s.f(oid, int4) RETURNS bool LANGUAGE plpgsql AS 'BEGIN RETURN true; END';
  3. Define a shadowing operator that matches the exact type signature used by pgjdbc's internal catalog queries:
    CREATE OPERATOR s.= (LEFTARG = oid, RIGHTARG = int4, PROCEDURE = s.f);
  4. Trigger metadata method invocation: Wait for or cause the application to call a pgjdbc metadata method such as rs.getMetaData().getTableName(1), which issues an internal catalog query using the unqualified = operator.
  5. Code executes as application role: PostgreSQL resolves = via search_path to s.=, executing s.f with the application role's privileges. Replace the stub body with any desired SQL payload.
  6. (Alternative — type-name route): Using only TEMP privilege, create a domain named interval (or another type used by TypeInfoCache) in the temporary schema with a malicious CHECK constraint; when the application resolves the type, the CHECK runs in the application's session (GitHub Advisory).

妥協の兆候

  • Database Objects: Unexpected functions or operators created in non-pg_catalog schemas that are present on the application's search_path, particularly those with signatures matching oid/int4 type pairs.
  • Database Objects: Domains or types in non-standard schemas (including pg_temp_* temporary schemas) with names matching built-in types such as interval, especially those containing CHECK constraints with SQL logic.
  • Logs: PostgreSQL server logs showing execution of user-defined functions during DatabaseMetaData or ResultSetMetaData queries (e.g., unexpected PL/pgSQL function calls in pg_log correlated with JDBC metadata operations).
  • Audit: pg_catalog.pg_operator or pg_catalog.pg_proc entries owned by low-privilege roles that shadow built-in operators/functions used in catalog queries.
  • Session Activity: pg_stat_activity showing unexpected function executions originating from the application's database connection during metadata method calls.

緩和策と回避策

Upgrade org.postgresql:postgresql (pgjdbc) to version 42.7.15 or later, which fixes the vulnerability by fully qualifying operators, functions, and type names in all catalog queries (GitHub Advisory). As interim mitigations: restrict CREATE privileges on schemas in the application's search_path to only fully trusted roles; audit and remove any unexpected operators, functions, or domains in accessible schemas; and configure the application's search_path to include only pg_catalog and the minimum required schemas. Note that the type-name route requires only the default TEMP privilege, so schema permission hardening alone does not fully mitigate the risk — upgrading to 42.7.15 is the definitive fix.

コミュニティの反応

The advisory credits Anthropic for discovery, as noted in a related GitHub commit referencing Anthropic-credited CVEs (GitHub Advisory). Detection coverage has been added by Tenable (Nessus plugin 385430 and cloud-security plugin 484254) and Qualys (detection ID 6783112). No significant public researcher commentary or social media discussion beyond standard vulnerability tracking aggregators has been observed at this time.

追加リソース

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が何かを重要視した場合、それは実際に重要であることを私たちは知っています。"
グレッグ・ポニャトフスキ脅威および脆弱性管理責任者