DEBIAN-CVE-2025-1094
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.
Risk Scores
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Debian:12 | postgresql-15 | 0, 15.3-0+deb12u1, 15.3-1 |
| Debian:11 | postgresql-13 | 13.10-0+deb11u1, 13.12-0+deb11u1, 13.13-0+deb11u1 |
| Debian:13 | postgresql-17 | 0, 0 |
Exploit Intelligence
- 🔒 CVE-2025-1094 PostgreSQL Multi-byte SQL Injection Demo | Educational security research project with full documentation (github-poc-repo)
- TranDongA3/POC-CVE-2025-1094 (github-poc-repo)
- TranDongA3/POC-CVE-2025-1094 (github-poc)
- 🔒 CVE-2025-1094 PostgreSQL Multi-byte SQL Injection Demo | Educational security research project with full documentation (github-poc)
- It is an input sanitization flaw caused by an encoding mismatch, allowing crafted input to bypass filters. If a server is vulnerable, an attacker can inject malicious SQL that the backend executes. (github-poc)
- ishwardeepp/CVE-2025-1094-PoC-Postgre-SQLi (github-poc)
- WebSocket and SQL Injection Exploit Script (github-poc)
- Detects CVE-2025-1094 - PostgreSQL SQL Injection to RCE. This script attempts to identify systems vulnerable to CVE-2025-1094 by checking for specific indicators and patterns. References: * https://nvd.nist.gov/vuln/detail/CVE-2025-1094 * https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-1094 (nmap-nse)
- GenerationConfig.java (github-poc)
- SelfAdaptationGenerationConfig.java (github-poc)
Timeline
- Feb 13, 2025 CVE Published
- Jan 3, 2026 PoC Published
- Apr 28, 2026 CVE Updated