Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2025-1094: Improper neutralization of quoting syntax in PostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(

63
This week
HIGH 8.1REMOTE

CVE-2025-1094 is a high-severity flaw (CVSS 8.1) affecting affected software. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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 Postgr

Why this priority

  • High severity
  • EPSS top 1%: very likely to be exploited
  • Public exploit reference
  • Remotely exploitable, no login, no user action

A fixed release or distro patch exists.

Risk facts

CVSS score8.1 (High)
Attack vectorNetwork (remote)
Attack complexityHigh
Privileges neededNone
User interactionNone
EPSS exploit chance90.0% (top 1%)
CISA exploited listNo
WeaknessCWE-149
Published2025-02-13
Last modified2026-06-17
Publisher (CNA): PostgreSQL

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Timeline

Exact fixes by distribution

Fedora 46 · byobu · FIXED · 7.23-1.fc46 · FEDORA-2026-08f2b53446 · source
sudo dnf upgrade --advisory=FEDORA-2026-08f2b53446
Ubuntu 25.04 · postgresql-17 · NOT AFFECTED
Ubuntu 25.10 · postgresql-17 · NOT AFFECTED
Ubuntu 24.04 · postgresql-16 · FIXED · 16.8-0ubuntu0.24.04.1
sudo apt update && sudo apt install --only-upgrade postgresql-16 dpkg --compare-versions "$(dpkg-query -W -f='${Version}' postgresql-16)" ge "16.8-0ubuntu0.24.04.1" && echo PATCHED || echo STILL-VULNERABLE
Ubuntu 24.10 · postgresql-16 · FIXED · 16.8-0ubuntu0.24.10.1
sudo apt update && sudo apt install --only-upgrade postgresql-16 dpkg --compare-versions "$(dpkg-query -W -f='${Version}' postgresql-16)" ge "16.8-0ubuntu0.24.10.1" && echo PATCHED || echo STILL-VULNERABLE
Ubuntu 22.04 · postgresql-14 · FIXED · 14.17-0ubuntu0.22.04.1
sudo apt update && sudo apt install --only-upgrade postgresql-14 dpkg --compare-versions "$(dpkg-query -W -f='${Version}' postgresql-14)" ge "14.17-0ubuntu0.22.04.1" && echo PATCHED || echo STILL-VULNERABLE
Debian 12 · postgresql-15 · FIXED · 15.11-0+deb12u1
sudo apt update && sudo apt install --only-upgrade postgresql-15 dpkg --compare-versions "$(dpkg-query -W -f='${Version}' postgresql-15)" ge "15.11-0+deb12u1" && echo PATCHED || echo STILL-VULNERABLE
Debian 13 · postgresql-17 · FIXED · 17.3-1
sudo apt update && sudo apt install --only-upgrade postgresql-17 dpkg --compare-versions "$(dpkg-query -W -f='${Version}' postgresql-17)" ge "17.3-1" && echo PATCHED || echo STILL-VULNERABLE
RHEL 7 Extended Lifecycle Support · postgresql · FIXED · postgresql-9.2.24-9.el7_9.3
sudo dnf upgrade --advisory=RHSA-2025:3978 rpm -q postgresql
RHEL 8 · libpq · FIXED · libpq-13.20-1.el8_10
sudo dnf upgrade --advisory=RHSA-2025:1737 rpm -q libpq
RHEL 8.2 Advanced Update Support · libpq · FIXED · libpq-12.7-1.el8_2.2
sudo dnf upgrade --advisory=RHSA-2025:1720 rpm -q libpq
RHEL 8.4 Advanced Mission Critical Update Support · libpq · FIXED · libpq-13.20-1.el8_4
sudo dnf upgrade --advisory=RHSA-2025:1735 rpm -q libpq
RHEL 8.4 Telecommunications Update Service · libpq · FIXED · libpq-13.20-1.el8_4
sudo dnf upgrade --advisory=RHSA-2025:1735 rpm -q libpq
Alpine 3.20 · postgresql15 · FIXED · postgresql15-15.11-r0
apk add --upgrade postgresql15 apk info -v postgresql15
Alpine 3.20 · postgresql16 · FIXED · postgresql16-16.8-r0
apk add --upgrade postgresql16 apk info -v postgresql16
Alpine 3.20 · postgresql14 · FIXED · postgresql14-14.17-r0
apk add --upgrade postgresql14 apk info -v postgresql14
Alpine 3.21 · postgresql16 · FIXED · postgresql16-16.8-r0
apk add --upgrade postgresql16 apk info -v postgresql16
Amazon Linux 2023 · see advisory · FIXED · ALAS2023-2025-870 · source
sudo dnf update --advisory=ALAS2023-2025-870
Amazon Linux 2 · see advisory · FIXED · ALAS2-2025-2866 · source
sudo yum update --advisory=ALAS2-2025-2866

Public exploits and detection

Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.

Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2025-1094?

No fixed release is listed yet. Watch the vendor advisory and apply any mitigation shown on this page.

Is CVE-2025-1094 being exploited?

CVE-2025-1094 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2025-1094 affect?

CVE-2025-1094 affects affected software. Severity is high (CVSS 8.1). 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.

How urgent is CVE-2025-1094?

Priority 63/100. High severity; EPSS top 1%: very likely to be exploited; Public exploit reference; Remotely exploitable, no login, no user action

Software pages

PostgreSQL vulnerabilities

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.