psqlODBCに列名の不適切な扱いによるSQL注入の脆弱性、影響は更新カーソルで発生
Summary
psqlODBCには、サーバーから受け取った列名を二重引用符で囲む際に、名前内の二重引用符をエスケープしない脆弱性があります。作成権限を持つデータベースユーザーが細工した列名を使うと、アプリケーションの権限で実行されるSQLが書き換えられ、更新・削除される行が変わるおそれがあります。18.00.0006より前の版が影響を受けるため、18.00.0006以降の修正版への更新が必要です。
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.
psqlODBCには、サーバーから受け取った列名を二重引用符で囲む際に、名前内の二重引用符をエスケープしない脆弱性があります。作成権限を持つデータベースユーザーが細工した列名を使うと、アプリケーションの権限で実行されるSQLが書き換えられ、更新・削除される行が変わるおそれがあります。18.00.0006より前の版が影響を受けるため、18.00.0006以降の修正版への更新が必要です。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| PostgreSQLpsqlODBC |
< 18.00.0006→ 18.00.0006 |
18.00.0006 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-120065 psqlodbc Fix available
- Ubuntu UBUNTU-CVE-2026-120065 psqlodbc No fixed version in this record
Original description The description as published by the source.
For an updatable cursor over a table without OIDs that has an auto-increment int4 column, psqlODBC uses that column to identify rows. It places the column's name, as reported by the server, between double quotes in its keyset queries and in the WHERE clause of its positioned SELECT, UPDATE, and DELETE statements, without doubling any double quote in the name. A column name that contains a double quote therefore changes the SQL that the driver runs with the application's privileges, including which rows a positioned UPDATE or DELETE affects. Any database user who can create a table that the application reads with an updatable cursor can choose such a name, and so can a server not trusted under current SSL settings. Versions before psqlODBC 18.00.0006 are affected.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- REDHAT Red Hat
- web github.com