CVE-2025-1094 Details
Description
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.
A SQL injection vulnerability has been identified in PostgreSQL's libpq quoting functions: PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn(). This issue arises from improper handling of quoting syntax, which can be exploited under certain conditions. Specifically, the vulnerability is present in PostgreSQL versions prior to 17.3, 16.7, 15.11, 14.16, and 13.19. The injection occurs when the function's output is used to create input for psql, the PostgreSQL interactive terminal. Additionally, similar quoting issues in PostgreSQL command line utilities can lead to SQL injection when the client_encoding is set to BIG5 and the server_encoding is either EUC_TW or MULE_INTERNAL.
Upgrade to PostgreSQL versions 17.3, 16.7, 15.11, 14.16, or 13.19. For Debian 11, the update is available in version 13.20-0+deb11u1.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Feb 13, 2025CISA-ADP
Assessed Oct 16, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://lists.debian.org/debian-lts-announce/2025/02/msg00015.html | CVE | AdvisoryMailing ListRemedy |
| https://lists.debian.org/debian-lts-announce/2025/02/msg00024.html | CVE | AdvisoryMailing ListRemedy |
| https://security.netapp.com/advisory/ntap-20250221-0010/ | CVE | AdvisoryVendor |
| http://www.openwall.com/lists/oss-security/2025/02/16/3 | CVE | Mailing List |
| http://www.openwall.com/lists/oss-security/2025/02/20/1 | CVE | Mailing ListRemedy |
| https://www.postgresql.org/support/security/CVE-2025-1094/ | PostgreSQL | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-149 | Improper Neutralization of Quoting Syntax | PostgreSQL |
Affected Products
| Product | Versions |
|---|---|
| PostgreSQL | < 17.3 < 16.7 < 15.11 < 14.16 < 13.19 |
CPE
Remediation
| |
| Debian | All versions |
CPE
Remediation
| |
| NetApp | All versions |
CPE
Remediation
| |
Change History
11 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 3, 2026 | CVE Modified | CVE |
| Nov 3, 2026 | CVE Modified | CISA-ADP |
| Nov 3, 2026 | CVE Modified | PostgreSQL |
| Jun 17, 2026 | CVE Modified | PostgreSQL |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 21, 2025 | CVE Modified | CVE |
| Feb 21, 2025 | CVE Modified | CVE |
| Feb 20, 2025 | CVE Modified | CVE |
| Feb 16, 2025 | CVE Modified | CVE |
| Feb 13, 2025 | CVE Modified | CVE |
| Feb 13, 2025 | New CVE Received | PostgreSQL |
Volerion