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

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

개요

CVE-2026-134848 is a startup parameter injection vulnerability in pgjdbc (the PostgreSQL JDBC Driver) caused by improper handling of NUL (zero byte) characters in connection startup parameters. An attacker who controls any part of a JDBC connection URL or property — such as currentSchema, database name, options, or ApplicationName — can inject NUL characters to append additional parameters to the PostgreSQL StartupMessage, potentially overriding the intended login role. All versions of org.postgresql:postgresql before 42.7.15 are affected; version 42.7.15 fixes the issue. The vulnerability was disclosed on November 23, 2026, and carries a CVSS v3.1 base score of 7.4 (High) (GitHub Advisory).

기술적 세부사항

The root cause is improper input validation (CWE-20) and improper neutralization of NUL bytes (CWE-158): pgjdbc does not strip or reject embedded NUL characters from connection parameter values before serializing them into the PostgreSQL StartupMessage protocol. Because the StartupMessage format uses NUL-terminated name/value pairs, an injected \0 byte effectively terminates one parameter value and begins a new parameter name, allowing an attacker to append arbitrary key/value pairs. Since PostgreSQL honors the last occurrence of a duplicate parameter, an injected user=postgres appended after the legitimate user=appuser will override the intended role. URL-encoded %00 in a JDBC URL decodes to a NUL and triggers the same behavior. A concrete proof-of-concept payload from the advisory is currentSchema=public\0user\0postgres, which causes the startup message to contain a duplicate user parameter resolved to postgres (GitHub Advisory).

영향

Successful exploitation allows an attacker to authenticate to PostgreSQL as an unintended database role, potentially including highly privileged roles such as postgres. On servers using trust authentication, no password is required and the attacker gains full access as the injected role. On servers using scram-sha-256, exploitation succeeds if the injected role shares the same password as the configured role. The vulnerability can also be used to override other startup parameters (e.g., replication=database), potentially altering session behavior or causing denial of service. Confidentiality and integrity of database contents are at high risk; availability is not directly impacted (GitHub Advisory).

악용 가능성

A proof-of-concept payload is publicly documented in the official GitHub Security Advisory, demonstrating the injection technique with the payload currentSchema=public\0user\0postgres. No weaponized exploit code or in-the-wild exploitation has been reported as of the disclosure date. The EPSS score is 0.0 and NVD SSVC exploitation status is listed as "none." The vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires the attacker to control at least one connection parameter passed to pgjdbc, and successful authentication bypass further depends on the server's authentication method (trust or scram-sha-256 with a shared password) (GitHub Advisory).

착취 단계

  1. Identify a target application: Find an application that uses pgjdbc (versions ≤ 42.7.14) and accepts attacker-influenced connection parameters — such as a currentSchema, database name, or options value derived from user input or an external source.
  2. Craft the injection payload: Construct a parameter value containing an embedded NUL character followed by additional startup parameters. Example: currentSchema=public%00user%00postgres (URL-encoded) or currentSchema=public\0user\0postgres (raw).
  3. Deliver the payload: Supply the crafted value through the application's input mechanism — e.g., via a JDBC URL parameter, an application configuration field, or any API that passes the value to pgjdbc as a connection property.
  4. pgjdbc serializes the malicious StartupMessage: Without NUL validation, pgjdbc writes the injected bytes into the StartupMessage, resulting in a message containing both user=appuser and a later user=postgres.
  5. PostgreSQL processes the last duplicate parameter: The server reads the final user=postgres and attempts to authenticate the session as postgres.
  6. Authentication succeeds (condition-dependent): On trust-configured servers, no password is needed and access is granted. On scram-sha-256 servers, authentication succeeds if postgres shares the same password as appuser. The attacker now holds a database session as the injected role (GitHub Advisory).

타협의 징후

  • Network: PostgreSQL startup messages (port 5432) containing duplicate parameter keys (e.g., two user fields) in the initial handshake; connections where the authenticated role differs from the role specified in the application's configured connection string.
  • Logs: PostgreSQL server logs (pg_log) showing login events for privileged roles (e.g., postgres) from application service accounts or unexpected source IPs; authentication log entries where the connecting role does not match the expected application user.
  • Application Logs: JDBC connection strings or property values containing %00 or raw NUL bytes in fields such as currentSchema, options, ApplicationName, or database name.
  • Database Activity: Unexpected sessions or queries executed under a privileged role (e.g., postgres) originating from application servers; pg_stat_activity showing sessions with usename differing from the expected application role (GitHub Advisory).

완화 및 우회 방법

Upgrade org.postgresql:postgresql (pgjdbc) to version 42.7.15 or later, which rejects NUL characters in startup parameters. As an interim workaround, validate and sanitize all untrusted connection parameters before passing them to pgjdbc — specifically, reject or strip any input containing NUL bytes (\0 or %00). Implement strict allowlists for accepted parameter values in applications that accept user-controlled connection properties. Additionally, review PostgreSQL server authentication configuration: avoid trust authentication for any role accessible from application servers, and prefer scram-sha-256 with unique passwords per role to limit the blast radius of exploitation (GitHub Advisory).

커뮤니티 반응

The vulnerability was reported by researcher sehrope and published via the official pgjdbc GitHub Security Advisory on November 23, 2026. No significant independent researcher commentary, vendor statements beyond the advisory, or notable media coverage has been identified at this time (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가 무언가를 중요한 것으로 식별하면 실제로 중요하다는 것을 알고 있습니다."
그렉 포니아토프스키위협 및 취약성 관리 책임자