Skip to content
High 7.4

pgjdbcに接続プロパティのNUL文字で起動パラメーターを追加される脆弱性

CVE-2026-134848 First seen on SecPulse

Summary

pgjdbcは、接続情報に含まれるNUL文字を拒否しないため、データベース名やユーザー名などに追加のパラメーターを混ぜられる脆弱性があります。URLの一部を操作できる攻撃者が、別のログインロールを指定したり、サーバーが信頼する設定の環境では任意のロールでログインしたりするおそれがあります。42.7.15より前のすべての版が影響を受け、修正版の42.7.15で対処されています。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

pgjdbcは、接続情報に含まれるNUL文字を拒否しないため、データベース名やユーザー名などに追加のパラメーターを混ぜられる脆弱性があります。URLの一部を操作できる攻撃者が、別のログインロールを指定したり、サーバーが信頼する設定の環境では任意のロールでログインしたりするおそれがあります。42.7.15より前のすべての版が影響を受け、修正版の42.7.15で対処されています。

Affected packages

PackageAffected → Fixed
pgjdbcpgjdbc
< 42.7.15→ 42.7.15

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

pgjdbc, the PostgreSQL JDBC Driver, does not refuse a NUL character in a startup parameter. The StartupMessage is a list of NUL-terminated strings, so a NUL in the database name, user, currentSchema, options or ApplicationName adds further parameters. %00 in a URL decodes to a NUL. Someone who controls part of the URL or a property can choose another login role or add replication=database, although the connection still has to pass the authentication of that role. On a server that trusts the client, the attacker can log in as any role. All versions before 42.7.15 are affected, and 42.7.15 fixes the problem.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details