| タイトル | PostgreSQL.orgのPostgreSQLにおける本質的に危険な機能の使用に関する脆弱性 |
|---|---|
| 概要 | PostgreSQLのlibpqのlo_export()、lo_read()、lo_lseek64()、およびlo_tell64()関数において、本質的に危険な関数PQfn(..., result_is_int=0, ...)の使用により、サーバーのスーパーユーザーがクライアントのスタックバッファを任意の大きさのレスポンスで上書きすることが可能です。gets()と同様に、PQfn(..., result_is_int=0, ...)は任意の長さのサーバーが決定したデータを未指定のサイズのバッファに格納します。psqlの\lo_exportコマンドとpg_dumpの両方がlo_read()を呼び出すため、サーバースーパーユーザーはpg_dumpまたはpsqlのスタックメモリを上書きできます。PostgreSQLのバージョン18.4未満、17.10未満、16.14未満、15.18未満および14.23未満が影響を受けます。 |
| 想定される影響 | 当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 さらに、当該ソフトウェアが完全に停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 |
| 対策 | 正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。 |
| 公表日 | 2026年5月14日0:00 |
| 登録日 | 2026年5月20日13:24 |
| 最終更新日 | 2026年5月20日13:24 |
| CVSS3.0 : 重要 | |
| スコア | 8.8 |
|---|---|
| ベクター | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| PostgreSQL.org |
| PostgreSQL 14.23 未満 |
| PostgreSQL 15.0 以上 15.18 未満 |
| PostgreSQL 16.0 以上 16.14 未満 |
| PostgreSQL 17.0 以上 17.10 未満 |
| PostgreSQL 18.0 以上 18.4 未満 |
| No | 変更内容 | 変更日 |
|---|---|---|
| 1 | [2026年05月20日] 掲載 |
2026年5月20日13:24 |
| 概要 | Use of inherently dangerous function PQfn(..., result_is_int=0, ...) in PostgreSQL libpq lo_export(), lo_read(), lo_lseek64(), and lo_tell64() functions allows the server superuser to overwrite a client stack buffer with an arbitrarily-large response. Like gets(), PQfn(..., result_is_int=0, ...) stores arbitrary-length, server-determined data into a buffer of unspecified size. Because both the \lo_export command in psql and pg_dump call lo_read(), the server superuser can overwrite pg_dump or psql stack memory. Versions before PostgreSQL 18.4, 17.10, 16.14, 15.18, and 14.23 are affected. |
|---|---|
| 公表日 | 2026年5月14日23:16 |
| 登録日 | 2026年5月15日4:24 |
| 最終更新日 | 2026年5月19日0:03 |
| 構成1 | 以上 | 以下 | より上 | 未満 | |
| cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* | 14.23 | ||||
| cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* | 15.0 | 15.18 | |||
| cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* | 16.0 | 16.14 | |||
| cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* | 17.0 | 17.10 | |||
| cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* | 18.0 | 18.4 | |||