Wiz가 Google Cloud에 합류: 함께 마법을 만드는 것

CVE-2026-134847: 
Java 취약점 분석 및 완화

개요

CVE-2026-134847 is a numeric truncation and uncontrolled resource consumption vulnerability in pgjdbc, the PostgreSQL JDBC Driver. When sending BigDecimal values in binary format (the default mode), the driver truncates the weight and scale fields 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. Additionally, the driver pre-computes 10^scale before transmission, meaning a value like 1e-200000000 can exhaust a thread for minutes. Affected versions are 42.3.0 through 42.7.14; version 42.7.15 fixes the issue. The CVSS v3.1 base score is 6.5 (Medium) (GitHub Advisory).

기술적 세부사항

The root cause is classified under CWE-197 (Numeric Truncation Error) and CWE-400 (Uncontrolled Resource Consumption). The PostgreSQL binary numeric wire format uses a 16-bit weight and a 14-bit scale field; pgjdbc's binary encoder did not validate or clamp BigDecimal values before encoding, silently truncating out-of-range weight and scale values. This means a BigDecimal with an extreme exponent is transmitted as a structurally valid but numerically different value, which the server accepts and stores without raising an error. A secondary issue is that the driver computes 10^scale eagerly before sending the query, so an attacker-supplied value with a very large negative exponent (e.g., 1e-200000000) triggers an enormous integer exponentiation on the driver thread, causing CPU exhaustion. The vulnerability is exploitable via setBigDecimal() or setObject() on any PreparedStatement when binary transfer is enabled (the default). A reproduction snippet is publicly available in the GitHub Security Advisory (GitHub Advisory).

영향

Successful exploitation has two distinct consequences: data integrity corruption and denial of service. An unauthenticated attacker who can influence decimal input parsed by the application can cause the database to silently store an incorrect numeric value — for instance, a value that should fail a range check is stored as a large, valid number — undermining financial, scientific, or business logic that relies on accurate numeric storage. The availability impact arises from the driver's eager 10^scale computation: a single crafted request with an extreme exponent can monopolize a JDBC driver thread for minutes, degrading application throughput. There is no confidentiality impact, and lateral movement potential is limited, but data integrity compromise could have downstream consequences in applications performing numeric validation at the database layer (GitHub Advisory).

악용 가능성

A proof-of-concept reproduction snippet is publicly available in the official GitHub Security Advisory, demonstrating the silent value substitution via a single PreparedStatement call. The vulnerability requires no authentication and no user interaction, and binary transfer mode is enabled by default, making exploitation straightforward for any attacker who can supply decimal input to an application using pgjdbc. The EPSS score is currently 0.0, and there is no evidence of in-the-wild exploitation or CISA KEV catalog inclusion at this time. NVD SSVC assessment classifies exploitation status as "poc" and the vulnerability as automatable (GitHub Advisory).

착취 단계

  1. Identify target application: Locate a web application or service that accepts user-supplied decimal/numeric input and uses pgjdbc versions 42.3.0–42.7.14 to interact with a PostgreSQL database.
  2. Craft a truncation payload: Prepare a BigDecimal string with an exponent outside the 16-bit range, such as 999999.99e-262144. When the application parses this and passes it to setBigDecimal() or setObject() on a PreparedStatement, the driver encodes it in binary with truncated weight/scale.
  3. Submit the payload: Send the crafted decimal value through the application's input interface (e.g., a form field, API parameter, or file upload) that maps to a numeric database column.
  4. Observe silent data corruption: The PostgreSQL server receives the malformed binary numeric value and stores 999999.99 instead of the intended tiny value — no error is raised, and any range check at the database level is bypassed.
  5. Trigger CPU exhaustion (DoS variant): Submit a value with an extreme negative exponent such as 1e-200000000. The driver attempts to compute 10^200000000 before sending the query, consuming the JDBC thread for minutes and degrading application availability (GitHub Advisory).

타협의 징후

  • Application Logs: Requests containing numeric strings with very large or very small exponents (e.g., matching regex \d+e[+-]?\d{5,}) in input fields mapped to database numeric columns.
  • Database: Stored numeric values that are unexpectedly large or inconsistent with submitted input; audit log entries showing numeric values stored without corresponding application-level validation errors.
  • Performance/Thread Monitoring: JDBC driver threads stuck in long-running computations (minutes of CPU time per request); thread dumps showing time spent in BigDecimal or BigInteger exponentiation operations within the pgjdbc driver.
  • Network: Repeated requests with extreme-exponent decimal payloads from the same source IP, potentially indicating automated probing or DoS attempts.

완화 및 우회 방법

Upgrade org.postgresql:postgresql (pgjdbc) to version 42.7.15 or later, which fixes both the truncation and CPU exhaustion issues (GitHub Advisory). If immediate patching is not feasible, consider disabling binary transfer mode for numeric types in the JDBC connection configuration (e.g., setting binaryTransfer=false or binaryTransferEnable to exclude the numeric type), which forces text-mode encoding and avoids the vulnerable code path. Additionally, restrict network access to the PostgreSQL JDBC Driver to trusted clients only, and implement application-level validation to reject BigDecimal values with exponents outside a safe range before they reach the driver.

커뮤니티 반응

The vulnerability was disclosed via the official pgjdbc GitHub Security Advisory on November 23, 2026, published by maintainer sehrope. The advisory notes that the CVE was credited to Anthropic, as reflected in a related GitHub commit. No significant independent researcher commentary or broad media coverage has been identified at this time beyond standard vulnerability aggregator coverage.

추가 리소스

리눅스 배포판 수정 현황

주요 리눅스 배포판과 그 릴리스 전반에 걸친 가용성을 수정하세요.

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
  • keycloak-26.8
아니요네Nov 23, 2026
CVE-2026-134848HIGH7.4
  • Java logoJava
  • org.postgresql:postgresql
아니요네Nov 23, 2026
CVE-2026-134845HIGH7.4
  • Java logoJava
  • flyway
아니요네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 리소스

맞춤형 데모를 받아보세요

맞춤형 데모 신청하기

"내가 본 최고의 사용자 경험은 클라우드 워크로드에 대한 완전한 가시성을 제공합니다."
데이비드 에슬릭CISO
"Wiz는 클라우드 환경에서 무슨 일이 일어나고 있는지 볼 수 있는 단일 창을 제공합니다."
아담 플레처최고 보안 책임자(CSO)
"우리는 Wiz가 무언가를 중요한 것으로 식별하면 실제로 중요하다는 것을 알고 있습니다."
그렉 포니아토프스키위협 및 취약성 관리 책임자