pgjdbcに SQLインジェクションの脆弱性、42.7.15で修正
Summary
pgjdbcは、preferQueryMode=simpleを設定した環境で、standard_conforming_stringsの値を取り違えてパラメーターを引用符で囲むため、細工された値によって任意のSQLが実行される可能性があります。42.7.15より前のすべての版が影響を受けるため、42.7.15以降に更新してください。CVSSは8.1で、CWEはCWE-89です。
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は、preferQueryMode=simpleを設定した環境で、standard_conforming_stringsの値を取り違えてパラメーターを引用符で囲むため、細工された値によって任意のSQLが実行される可能性があります。42.7.15より前のすべての版が影響を受けるため、42.7.15以降に更新してください。CVSSは8.1で、CWEはCWE-89です。
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-134842 libpgjava Fix available
- Ubuntu UBUNTU-CVE-2026-134842 libpgjava No fixed version in this record
Original description The description as published by the source.
pgjdbc, the PostgreSQL JDBC Driver, can quote a string parameter for the wrong value of standard_conforming_strings when preferQueryMode=simple is set. A statement, trigger or configuration reload can turn the setting off during a session. A parameter value with a backslash and a quote then ends the literal, and the rest of the value runs as SQL. Before 42.7.6 any session with the setting off was affected. The statement cache can also reuse a parse made under the other setting. With allowEncodingChanges=true and the EUC_JP or SJIS client encoding, the yen sign acts as a backslash. 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