pgjdbcに接続プロパティのNUL文字で起動パラメーターを追加される脆弱性
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
| Package | Affected → Fixed | |
|---|---|---|
| pgjdbcpgjdbc |
< 42.7.15→ 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.
- Debian DEBIAN-CVE-2026-134848 libpgjava Fix available
- Ubuntu UBUNTU-CVE-2026-134848 libpgjava No fixed version in this record
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
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- web repo.maven.apache.org