PostgreSQLの引用処理に脆弱性、SQLインジェクションのおそれ
Summary
2025年2月に公表された脆弱性で、PostgreSQLのlibpq関数で引用符の無害化が不十分なため、SQLインジェクションが起きるおそれがあります。影響するのは17.3より前の17系、16.7より前の16系、15.11より前の15系、14.16より前の14系、13.19より前の版です。17.3、16.7、15.11、14.16、13.19の修正版で直るため、修正版への更新をおすすめします。
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.
2025年2月に公表された脆弱性で、PostgreSQLのlibpq関数で引用符の無害化が不十分なため、SQLインジェクションが起きるおそれがあります。影響するのは17.3より前の17系、16.7より前の16系、15.11より前の15系、14.16より前の14系、13.19より前の版です。17.3、16.7、15.11、14.16、13.19の修正版で直るため、修正版への更新をおすすめします。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| CVE の記録PostgreSQL |
≥ 17, < 17.3→ 17.3 ≥ 16, < 16.7→ 16.7 ≥ 15, < 15.11→ 15.11 ≥ 14, < 14.16→ 14.16 < 13.19→ 13.19 |
17.3 16.7 15.11 14.16 13.19 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Alpine Linux ALPINE-CVE-2025-1094 postgresql17, postgresql16, postgresql15 +2 more Fix available
- Debian DEBIAN-CVE-2025-1094 postgresql-17, postgresql-15, postgresql-13 Fix available
- Ubuntu UBUNTU-CVE-2025-1094 postgresql-16, postgresql-14, postgresql-12 +1 more Fix available
Original description The description as published by the source.
Improper neutralization of quoting syntax in PostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() allows a database input provider to achieve SQL injection in certain usage patterns. Specifically, SQL injection requires the application to use the function result to construct input to psql, the PostgreSQL interactive terminal. Similarly, improper neutralization of quoting syntax in PostgreSQL command line utility programs allows a source of command line arguments to achieve SQL injection when client_encoding is BIG5 and server_encoding is one of EUC_TW or MULE_INTERNAL. Versions before PostgreSQL 17.3, 16.7, 15.11, 14.16, and 13.19 are affected.
Source: CVE.org (CVE Program・cvelistV5) NVD
References
- advisory security.netapp.com
- web postgresql.org
- web lists.debian.org
- web openwall.com
- web openwall.com
- web lists.debian.org