psqlODBCで、変換値がバッファに収まらずメモリが壊される脆弱性
Summary
psqlODBCの18.00.0006以前では、変換後の値がアプリケーションのバッファに収まらず、バッファオーバーフローが起きることが分かっています。悪意のあるサーバーや通信経路上の攻撃者から影響を受ける可能性があり、CVSS v3.1の基本値は7.5です。修正版の有無は公表情報で確認できないため、最新の情報を確認してください。
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の18.00.0006以前では、変換後の値がアプリケーションのバッファに収まらず、バッファオーバーフローが起きることが分かっています。悪意のあるサーバーや通信経路上の攻撃者から影響を受ける可能性があり、CVSS v3.1の基本値は7.5です。修正版の有無は公表情報で確認できないため、最新の情報を確認してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| PostgreSQLpsqlODBC |
≤ 18.00.0006→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-136512 psqlodbc No fixed version in this record
- Ubuntu UBUNTU-CVE-2026-136512 psqlodbc No fixed version in this record
Original description The description as published by the source.
With SQL_C_DEFAULT, the C type of a bound column or parameter follows its SQL type. An application sizes its buffer from the type it was told when it described the statement. When the column had another type at fetch time, because the server reported another type, the table was altered, or an output parameter's result column had another type, psqlODBC wrote the larger type into the smaller buffer: 12 bytes past a 4-byte buffer for a uuid, and more in multi-row fetches, where the driver also steps through the array by the larger size.
Other conversions wrote past the application's buffer as well:
- With Int8As set to a smaller type, an int8 column fetched as SQL_C_DEFAULT was still written as 8 bytes.
- An int2vector column fetched as SQL_C_DEFAULT returned unterminated binary data instead of text.
- An output parameter that the application discards by binding a NULL buffer overflowed a stack buffer in the driver.
- SQLGetData() with BufferLength 0 on a column the driver reads as a large object wrote a NUL byte past the buffer.
- Adding a row with SQLBulkOperations(SQL_ADD) on a static updatable cursor before the first fetch, then changing that row, rolling back and fetching it, made the keyset index arithmetic free a pointer that was never allocated and corrupt the heap.
This can be triggered by a hostile or compromised server, or anyone on the network path of a connection that does not use sslmode=verify-full (the default is disable), and by the owner of a table the appli…
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory odbc.postgresql.org
- advisory github.com
- advisory nvd.nist.gov
- web odbc.postgresql.org