pgjdbcに脆弱性、クエリ解析の誤りで任意のSQLが実行されるおそれ
Summary
PostgreSQL用JDBCドライバーのpgjdbcには、クエリ解析の誤りによりSQLインジェクションが起きる脆弱性があります。引用された文字列が意図せずSQLとして実行され、アプリケーションのデータベースロールの権限で動くおそれがあり、CVSSは8.1です。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.
PostgreSQL用JDBCドライバーのpgjdbcには、クエリ解析の誤りによりSQLインジェクションが起きる脆弱性があります。引用された文字列が意図せずSQLとして実行され、アプリケーションのデータベースロールの権限で動くおそれがあり、CVSSは8.1です。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-134841 libpgjava Fix available
- Ubuntu UBUNTU-CVE-2026-134841 libpgjava No fixed version in this record
Original description The description as published by the source.
pgjdbc, the PostgreSQL JDBC Driver, misreads some quoted text in its query parser. A } inside a literal ends a JDBC escape such as {ts}, and the rest of the literal is translated as SQL. A dollar quote whose tag has a non-ASCII symbol or space is not recognized. An E'' string with a doubled quote is scanned as a standard string. {fn right} and {fn timestampdiff} with a negative argument produce a -- comment. In each case text that the application quoted correctly can run as SQL with the privileges of the application's database 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