Security Resilience

CVE-2025-1094

PostgreSQL

High EPSS
Published
13 February 2025
Modified
03 November 2026
CVSS Score v3.1 8.1
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.85 99.7th percentile
Risk Priority 85 floored blend · peak EPSS

CVSS 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

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

T1499 Endpoint Denial of Service Impact
Adversaries may perform Endpoint Denial of Service (DoS) attacks to degrade or block the availability of services to users.
T1499.004 Application or System Exploitation Impact
Adversaries may exploit software vulnerabilities that can cause an application or system to crash and deny availability to users.
T1687 Exploitation for Defense Impairment Defense Impairment
Adversaries may exploit vulnerabilities in security software, infrastructure, or defensive components to degrade, disable, or otherwise continue to impair their ability to prevent, detect, or respond to malicious activity.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1211 Exploitation for Stealth Stealth
Adversaries may exploit vulnerabilities to evade detection by hiding activity, suppressing logging, or operating within trusted or unmonitored components.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2026-42511Shared CWE-149
CVE-2023-36479Shared CWE-149
CVE-2025-43878Shared CWE-149
CVE-2026-119301Shared CWE-149

Affected Assets

—
PostgreSQL
named in the CVE record; NVD lists no product yet

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.

PR.PS-06 mostly match
blocks

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.

finds

Security testing can detect quote-injection but does not itself implement the fix.

finds

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.

removes

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.

prevents

Secure coding standards require proper escaping or parameterization, directly eliminating CWE-149.

prevents

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.

finds

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.

References