
Cloud Vulnerability DB
コミュニティ主導の脆弱性データベース
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.
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).CREATE FUNCTION s.f(oid, int4) RETURNS bool LANGUAGE plpgsql AS 'BEGIN RETURN true; END';CREATE OPERATOR s.= (LEFTARG = oid, RIGHTARG = int4, PROCEDURE = s.f);rs.getMetaData().getTableName(1), which issues an internal catalog query using the unqualified = operator.= via search_path to s.=, executing s.f with the application role's privileges. Replace the stub body with any desired SQL payload.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).pg_catalog schemas that are present on the application's search_path, particularly those with signatures matching oid/int4 type pairs.pg_temp_* temporary schemas) with names matching built-in types such as interval, especially those containing CHECK constraints with SQL logic.DatabaseMetaData or ResultSetMetaData queries (e.g., unexpected PL/pgSQL function calls in pg_log correlated with JDBC metadata operations).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.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ディストリビューションとそのリリース間での可用性を修正しましょう。
ソース: この報告書はAIを用いて作成されました
無料脆弱性評価
9つのセキュリティ領域にわたるクラウドセキュリティの実践を評価し、リスクレベルをベンチマークし、防御のギャップを特定しましょう。
パーソナライズされたデモを見る
"私が今まで見た中で最高のユーザーエクスペリエンスは、クラウドワークロードを完全に可視化します。"
"Wiz を使えば、クラウド環境で何が起こっているかを 1 つの画面で確認することができます"
"Wizが何かを重要視した場合、それは実際に重要であることを私たちは知っています。"