SQL injection via invalidly encoded quoting input
Published Feb 13, 2025 · Updated Mar 14, 2025
SQL injection in PostgreSQL before 17.3, 16.7, 15.11, 14.16, or 13.19 allows remote attackers to execute SQL via crafted input. The libpq quoting functions fail to reject or safely transform invalidly encoded bytes, allowing quote or backslash bytes to be reinterpreted when psql processes the escaped result. Exploitation requires an application to place the result into psql input, or BIG5 client encoding with an EUC_TW or MULE_INTERNAL server encoding for affected command-line utilities.
Summary
What happened
SQL injection in PostgreSQL before 17.3, 16.7, 15.11, 14.16, or 13.19 allows remote attackers to execute SQL via crafted input. The libpq quoting functions fail to reject or safely transform invalidly encoded bytes, allowing quote or backslash bytes to be reinterpreted when psql processes the escaped result. Exploitation requires an application to place the result into psql input, or BIG5 client encoding with an EUC_TW or MULE_INTERNAL server encoding for affected command-line utilities.
The record
- CVE
- CVE-2025-1094
- Published
- Feb 13, 2025
- Updated
- Mar 14, 2025
- Vendor
- PostgreSQL Global Development Group
- Product
- PostgreSQL
- Classifications
- CWE-149
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Feb 13, 2025CVE publishedPublication date reported by the CVE source.
- Mar 14, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <13.19
- Affected versionversion=14 <14.16
- Affected versionversion=15 <15.11
- Affected versionversion=16 <16.7
- Affected versionversion=17 <17.3
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo