CVE-2025-1094
PostgreSQL
Raw vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HCVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.
Summary
CVE-2025-1094 is a high-severity Improper Neutralization of Quoting Syntax (CWE-149) vulnerability in PostgreSQL (named in the CVE record; NVD lists no product yet). Its CVSS base score is 8.1 (High).
Operationally, exploitation aligns with the MITRE ATT&CK technique Endpoint Denial of Service (T1499); ranked in the top 0.3% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.
The strongest mitigations our analysis identified map to SI-10 (Information Input Validation) — see the control section below for these in your framework.
Deeper analysis AI-assisted summary
Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.
CVE-2025-1094 is an improper neutralization of quoting syntax vulnerability affecting PostgreSQL libpq escaping functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn(), as well as certain command-line utility programs. It impacts all versions prior to PostgreSQL 17.3, 16.7, 15.11, 14.16, and 13.19. The flaw permits SQL injection when application code feeds the escaped output into psql or when client_encoding is set to BIG5 with server_encoding of EUC_TW or MULE_INTERNAL.
An unauthenticated remote attacker supplying crafted database input or command-line arguments can exploit the issue to achieve SQL injection. Successful exploitation can result in high-impact outcomes including confidentiality, integrity, and availability breaches, as reflected in the CVSS 8.1 score requiring high attack complexity but no privileges or user interaction.
Official advisories from PostgreSQL and downstream distributors such as Debian recommend immediate upgrade to the patched releases listed above. The associated EPSS score remains elevated near its recorded peak of 0.8336, indicating sustained exploitation interest following disclosure.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2025-1999
Vulnerability Data
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…
more
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.
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise Techniques
MITRE ATT&CK v20.0
CVEs Like This One
Affected Assets
Mitigating Controls
Mitigating Controls (NIST 800-53 r5)
Our mappings, made for this CVE.
Input validation directly stops malformed or injected quoting syntax from reaching parsers and causing unexpected actions.
Mitigating Controls (NIST CSF 2.0)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.
Secure SDLC practices directly require input neutralization and quoting handling to prevent injection flaws.
Mitigating Controls (ISO/IEC 27001:2022 Annex A)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.
Security testing can detect quote-injection but does not itself implement the fix.
A.5.26 is an incident response procedure (containment, evidence collection, escalation, post-incident analysis); it has no code-scanning, testing, or vulnerability-discovery mechanism, so it does not find CWE-149 instances latent in deployed code.
A.8.19 governs the installation and update process for operational software, ensuring integrity and preventing exploitation, but it does not remove existing quoting syntax flaws in code that is already installed; the weakness is a code defect that persists unless the code itself is changed.
Secure coding standards require proper escaping or parameterization, directly eliminating CWE-149.
A.8.30 contracts secure design, coding and testing practices (8.25–8.29) from the supplier, so a faithful implementation reduces ordinary software injection flaws like CWE-149 in delivered code the way those practices do, but the effect is bounded by the fallibility of the contracted practices and the clause's own ceiling on this verb.
A.8.8's reach is DISCLOSURE — it sees only instances that carry a vendor-published flaw. CWE-149 does surface as CVEs (the observed examples include CVE-2004-0956 and CVE-2003-1016), so the disclosed share is non-zero, but the bulk of quoting-syntax injection lives in first-party code that nobody publishes an advisory about, and A.8.8's scanning and inventory reach does not read source. Same shape as A.8.8 -> CWE-89: a minority of instances found, the remainder bounded by what never gets disclosed.