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

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

概要

CVE-2026-134847 is a numeric truncation and resource exhaustion vulnerability in pgjdbc, the PostgreSQL JDBC Driver. When sending BigDecimal values in binary format (the default), the driver truncates the weight and scale to 16 bits, causing the PostgreSQL server to silently store a different numeric value than what was submitted. For example, 999999.99e-262144 is stored as 999999.99, and 1e131072 is stored as 0. Affected versions are 42.3.0 through 42.7.14; version 42.7.15 resolves the issue. The vulnerability carries a CVSS v3.1 base score of 6.5 (Medium) (GitHub Advisory).

技術的詳細

The root cause is a failure to validate the weight and scale fields of the PostgreSQL binary numeric format before encoding a BigDecimal value for transmission (CWE-197: Numeric Truncation Error). The binary numeric format supports a 16-bit weight and a 14-bit scale, but the driver performed no bounds checking, silently truncating out-of-range values. A secondary issue (CWE-400: Uncontrolled Resource Consumption) arises because the driver pre-computes 10^scale before sending the value; an input like 1e-200000000 forces this computation, consuming thread CPU for minutes per request. Both setBigDecimal() and setObject() on a PreparedStatement use the affected binary transfer path, which is enabled by default. No authentication is required to trigger either issue if the application accepts attacker-controlled decimal input (GitHub Advisory).

影響

Successful exploitation has two distinct consequences: data integrity corruption and denial of service. An attacker who can supply decimal input to an application using pgjdbc can cause the database to silently store a completely different numeric value — for instance, a value that should fail a range check may instead be stored as a large number, undermining financial, scientific, or business logic that depends on accurate numeric storage. Additionally, submitting values with extreme exponents (e.g., 1e-200000000) can monopolize a JDBC driver thread for minutes per request, degrading application availability. There is no confidentiality impact (GitHub Advisory).

利用可能性

A proof-of-concept reproduction snippet is publicly available in the official GitHub Security Advisory, demonstrating the silent value substitution via ps.setBigDecimal(1, new BigDecimal("999999.99e-262144")). The vulnerability is automatable and requires no authentication or user interaction, making it straightforward to exploit at scale. The EPSS score is approximately 0.0035 (0.35%), and there is no evidence of in-the-wild exploitation or CISA KEV catalog listing as of the time of disclosure. Qualys has published a detection (ID 6783115) (GitHub Advisory).

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

  1. Identify target applications: Locate Java applications that use pgjdbc versions 42.3.0–42.7.14 with binary transfer enabled (the default) and that accept user-supplied decimal input passed to setBigDecimal() or setObject() on a PreparedStatement.
  2. Craft a malicious BigDecimal value: Prepare a decimal string with an extreme exponent, such as 999999.99e-262144 (for silent value substitution) or 1e-200000000 (for CPU exhaustion/DoS).
  3. Submit the value through the application: Supply the crafted decimal via any application input field, API parameter, or data import mechanism that the application parses into a BigDecimal and binds to a parameterized SQL query.
  4. Trigger silent truncation (integrity attack): The driver truncates the weight/scale to 16 bits and sends the malformed binary numeric value; the PostgreSQL server stores 999999.99 instead of the intended tiny value, bypassing range checks without raising an error.
  5. Trigger CPU exhaustion (DoS attack): Supply a value like 1e-200000000; the driver attempts to compute 10^200000000 before sending, keeping the handling thread busy for minutes and degrading application responsiveness (GitHub Advisory).

妥協の兆候

  • Application Logs: JDBC queries involving setBigDecimal() or setObject() with extreme-exponent numeric strings (e.g., values matching the pattern \d+e[+-]?\d{5,}) in application-level query logs.
  • Database: Stored numeric values that are unexpectedly large or inconsistent with submitted input; discrepancies between application-layer audit logs and database-stored values for numeric columns.
  • Performance: Sudden, sustained CPU spikes in the Java application process (JVM) without a corresponding increase in request volume, particularly on threads handling database write operations; thread dumps showing threads stuck in BigDecimal arithmetic or pgjdbc binary encoding methods.
  • Network: Repeated parameterized queries to PostgreSQL with binary-format numeric parameters containing anomalous byte patterns corresponding to truncated weight/scale fields (GitHub Advisory).

緩和策と回避策

Upgrade org.postgresql:postgresql (pgjdbc) to version 42.7.15 or later, which validates weight and scale before binary encoding and avoids the premature 10^scale computation. If immediate patching is not feasible, consider disabling binary transfer mode for numeric types in the JDBC connection configuration (e.g., setting binaryTransfer=false as a connection property), which forces text-mode encoding and avoids the vulnerable code path. Additionally, restrict application inputs to validated numeric ranges before passing them to JDBC to reduce exposure (GitHub Advisory).

コミュニティの反応

The vulnerability was assigned by PostgreSQL and published by maintainer sehrope via the official GitHub Security Advisory on November 23, 2026. Detection coverage was quickly added by Tenable (Nessus plugin 385439 and cloud security plugin 484112) and Qualys (detection ID 6783115). The CVE has been noted in automated threat intelligence feeds including Cloudflare Radar, VulDB, and Aikido Intel, though no significant independent researcher commentary or social media discussion has been identified beyond standard aggregation (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が何かを重要視した場合、それは実際に重要であることを私たちは知っています。"
グレッグ・ポニャトフスキ脅威および脆弱性管理責任者