CVE-2025-1094
PostgreSQL quoting APIs miss neutralizing quoting syntax in text that fails encoding validation
描述
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.
如何修補 CVE-2025-1094
要修補 CVE-2025-1094,請將受影響套件升級到下列已修補版本。
- —升級至 14.17-r0 或更新版本
- —升級至 15.11-r0 或更新版本
- —升級至 16.8-r0 或更新版本
- —升級至 17.4-r0 或更新版本
- —升級至 13.19.0 或更新版本
- —升級至 13.20-0+deb11u1 或更新版本
- —升級至 13.19-0+deb11u1 或更新版本
- —升級至 13.20-0+deb11u1 或更新版本
- —升級至 15.11-0+deb12u1 或更新版本
- —升級至 17.3-1 或更新版本
CVE-2025-1094 正在被利用嗎?
可能 — EPSS 為 89.5%,屬於高被利用機率區間,建議優先修補。
受影響套件(10)
- from 0, < 14.17-r0
- from 0, < 15.11-r0
- from 0, < 16.8-r0
- from 0, < 17.4-r0
- from 0, < 13.19.0, >= 14.0.0, < 14.16.0, >= 15.0.0, < 15.11.0, >= 16.0.0, < 16.7.0, >= 17.0.0, < 17.3.0
- from 0, < 13.20-0+deb11u1
- from 0, < 13.19-0+deb11u1
- from 0, < 13.20-0+deb11u1
- from 0, < 15.11-0+deb12u1
- from 0, < 17.3-1
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |