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

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

개요

CVE-2026-134844 is a search path hijacking vulnerability in pgjdbc, the PostgreSQL JDBC Driver, classified as CWE-427 (Uncontrolled Search Path Element). The driver uses unqualified operators, functions, and type names in catalog queries issued by DatabaseMetaData, ResultSetMetaData, and TypeInfoCache, allowing a low-privileged database role to inject malicious objects that execute with the application's database privileges. All versions 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 root cause is that pgjdbc's internal catalog queries reference operators and functions using unqualified names (e.g., = for oid/int4 comparisons) rather than schema-qualified names anchored to pg_catalog. Because PostgreSQL resolves unqualified identifiers via the session's search_path, an attacker who holds CREATE privilege on any schema present in the application's search_path can define a shadowing operator or function with an exact type signature match; the server then executes the attacker's code under the application role's privileges. A second attack surface exists in TypeInfoCache, which resolves unqualified type names (e.g., interval for PGInterval) by its own internal ranking — a domain with the same name in any schema, including the temporary schema of another session (requiring only the default TEMP privilege), can be substituted, and its CHECK constraint runs in the application's session. A proof-of-concept SQL snippet is publicly available in the advisory (GitHub Advisory).

영향

Successful exploitation allows an authenticated database role with limited privileges to execute arbitrary SQL or PL/pgSQL code with the full privileges of the application's database role, impacting confidentiality, integrity, and availability. An attacker can read or exfiltrate sensitive data accessible to the application role, modify or delete database objects, and potentially disrupt application availability. The type-name route is particularly broad because every database role has TEMP privilege by default, lowering the bar for exploitation significantly (GitHub Advisory).

악용 가능성

A proof-of-concept is publicly available in the GitHub Security Advisory, consisting of a short SQL snippet that creates a shadowing operator and function, and a one-line Java call (rs.getMetaData().getTableName(1)) that triggers execution. Exploitation is not automated and requires a pre-existing authenticated database foothold with either CREATE on a schema in the application's search_path or the default TEMP privilege. There is no evidence of in-the-wild exploitation at this time, and the EPSS score is 0.0. The vulnerability is not currently listed in the CISA KEV catalog (GitHub Advisory).

착취 단계

  1. Reconnaissance: Identify the application's PostgreSQL search_path configuration and determine which schemas the attacker's database role has CREATE privilege on, or confirm that TEMP privilege is available (granted by default to all roles).
  2. Create shadowing function (operator route): In a schema s on the application's search_path, create a malicious PL/pgSQL function with the exact signature used by pgjdbc's catalog queries:
    CREATE FUNCTION s.f(oid, int4) RETURNS bool LANGUAGE plpgsql AS 'BEGIN /* malicious SQL here */ RETURN true; END';
  3. Define shadowing operator (operator route): Bind the function to the = operator for oid/int4 types:
    CREATE OPERATOR s.= (LEFTARG = oid, RIGHTARG = int4, PROCEDURE = s.f);
  4. Trigger execution: Wait for or induce the application to call a pgjdbc metadata method such as rs.getMetaData().getTableName(1). The server resolves the unqualified = operator via search_path to s.= and executes s.f with the application role's privileges.
  5. Alternative — type-name route (requires only TEMP privilege): Create a domain with the same name as a type used by pgjdbc (e.g., interval) in the temporary schema or another accessible schema, embedding a malicious CHECK constraint. When TypeInfoCache resolves the type name, the CHECK expression executes in the application's session.
    CREATE DOMAIN pg_temp.interval AS text CHECK (/* malicious SQL here */ true);
    (GitHub Advisory)

타협의 징후

  • Database Logs: Unexpected creation of operators or functions in non-system schemas that shadow pg_catalog built-ins (e.g., CREATE OPERATOR or CREATE FUNCTION with oid/int4 signatures in application schemas); creation of domains in pg_temp or other schemas with names matching standard PostgreSQL types (e.g., interval, text).
  • Database Audit: Queries from the application session invoking user-defined functions or operators in non-pg_catalog schemas during metadata operations (DatabaseMetaData, ResultSetMetaData calls).
  • Schema Inspection: Presence of unexpected objects in schemas on the application's search_path:
    SELECT n.nspname, o.oprname, o.oprleft::regtype, o.oprright::regtype
    FROM pg_operator o JOIN pg_namespace n ON o.oprnamespace = n.oid
    WHERE n.nspname NOT IN ('pg_catalog', 'information_schema');
  • Privilege Audit: Database roles with CREATE privilege on schemas included in the application's search_path that should not have such access. (GitHub Advisory)

완화 및 우회 방법

Upgrade org.postgresql:postgresql (pgjdbc) to version 42.7.15 or later, which fixes the vulnerability by using schema-qualified names in all catalog queries. As interim mitigations: restrict CREATE privileges on all schemas in the application's search_path to trusted roles only; audit and remove any unexpected operators, functions, or domains in accessible schemas; and consider prepending pg_catalog to the application's search_path to reduce the attack surface. The type-name route via TEMP privilege cannot be fully mitigated without patching, as TEMP is granted to all roles by default (GitHub Advisory).

추가 리소스

리눅스 배포판 수정 현황

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

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가 무언가를 중요한 것으로 식별하면 실제로 중요하다는 것을 알고 있습니다."
그렉 포니아토프스키위협 및 취약성 관리 책임자