CVSS 3.1
8.1 highCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HHigh (8.1). EPSS 34% estimated probability of exploitation activity in the next 30 days.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HExplain CVE-2025-1094 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-1094?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-1094?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-1094 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 11 | postgresql-13 | 13.19-0+deb11u1 | DLA-4052-1 |
| Debian | 11 | postgresql-13 | 13.20-0+deb11u1 | DLA-4052-2 |
| Debian | 12 | postgresql-15 | 15.11-0+deb12u1 | DEBIAN-CVE-2025-1094 |
| Debian | 13 | postgresql-17 | 17.3-1 | DEBIAN-CVE-2025-1094 |
| Ubuntu | 20.04:LTS | postgresql-12 | 12.22-0ubuntu0.20.04.2 | UBUNTU-CVE-2025-1094 USN-7315-1 |
| Ubuntu | 22.04:LTS | postgresql-14 | 14.17-0ubuntu0.22.04.1 | UBUNTU-CVE-2025-1094 USN-7315-1 |
| Ubuntu | 24.04:LTS | postgresql-16 | 16.8-0ubuntu0.24.04.1 | UBUNTU-CVE-2025-1094 USN-7315-1 |
| Ubuntu | Pro:14.04:LTS | postgresql-9.3 | no fix listed | UBUNTU-CVE-2025-1094 |
| Ubuntu | Pro:16.04:LTS | postgresql-9.5 | no fix listed | UBUNTU-CVE-2025-1094 |
| Ubuntu | Pro:18.04:LTS | postgresql-10 | 10.23-0ubuntu0.18.04.2+esm3 | UBUNTU-CVE-2025-1094 USN-7315-2 |
| Red Hat | enterprise_linux:8::appstream | libpq, libpq-devel, libpq-debuginfo and 2 more | 0:13.20-1.el8_10 | RHSA-2025:1737 |
| Red Hat | enterprise_linux:8::appstream | pg_repack, pg_repack-debuginfo, pg_repack-debugsource | 0:1.4.6-3.module+el8.9.0+19330+c97ddbdf | RHSA-2025:3082 |
| Red Hat | enterprise_linux:8::appstream | pg_repack, pg_repack-debuginfo, pg_repack-debugsource | 0:1.4.6-3.module+el8.9.0+20664+9c30cf7f | RHSA-2025:1736 |
| Red Hat | enterprise_linux:8::appstream | pg_repack, pg_repack-debuginfo, pg_repack-debugsource | 0:1.4.8-1.module+el8.9.0+19797+c4ce5969 | RHSA-2025:1739 |
| Red Hat | enterprise_linux:8::appstream | pg_repack, pg_repack-debuginfo, pg_repack-debugsource | 0:1.5.1-1.module+el8.10.0+22551+c0330dc9 | RHSA-2025:1740 |
| Red Hat | enterprise_linux:8::appstream | pgaudit, pgaudit-debuginfo, pgaudit-debugsource | 0:1.4.0-7.module+el8.10.0+22214+9beb89d6 | RHSA-2025:3082 |
| Red Hat | enterprise_linux:8::appstream | pgaudit, pgaudit-debuginfo, pgaudit-debugsource | 0:1.5.0-1.module+el8.9.0+20664+9c30cf7f | RHSA-2025:1736 |
| Red Hat | enterprise_linux:8::appstream | pgaudit, pgaudit-debuginfo, pgaudit-debugsource | 0:1.7.0-1.module+el8.9.0+19797+c4ce5969 | RHSA-2025:1739 |
| Red Hat | enterprise_linux:8::appstream | pgaudit, pgaudit-debuginfo, pgaudit-debugsource | 0:16.0-1.module+el8.10.0+20413+d8116364 | RHSA-2025:1740 |
| Red Hat | enterprise_linux:8::appstream | postgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource | 0:0.10.0-2.module+el8.9.0+19330+c97ddbdf | RHSA-2025:3082 |
| Red Hat | enterprise_linux:8::appstream | postgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource | 0:0.10.0-2.module+el8.9.0+20664+9c30cf7f | RHSA-2025:1736 |
| Red Hat | enterprise_linux:8::appstream | postgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource | 0:1.9.7-1.Final.module+el8.9.0+19797+c4ce5969 | RHSA-2025:1739 |
| 71 more for Red Hat in the JSON and on Red Hat's page. | ||||
| SUSE | Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 11 more | postgresql15 | 15.12-150200.5.38.1 | SUSE-SU-2025:0633-1 |
| SUSE | Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 11 more | postgresql16 | 16.8-150200.5.26.1 | SUSE-SU-2025:0636-1 |
| SUSE | Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 11 more | postgresql17 | 17.4-150200.5.10.1 | SUSE-SU-2025:0618-1 |
| SUSE | Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 9 more | postgresql14 | 14.17-150200.5.55.1 | SUSE-SU-2025:0632-1 |
| SUSE | Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 5 more | postgresql13 | 13.20-150200.5.69.1 | SUSE-SU-2025:0619-1 |
| SUSE | Linux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Package Hub 15 SP6, Linux Enterprise Module for Server Applications 15 SP6 | postgresql16 | 16.8-150600.16.15.1 | SUSE-SU-2025:0635-1 |
| SUSE | Linux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Package Hub 15 SP6, Linux Enterprise Module for Server Applications 15 SP6 | postgresql17 | 17.4-150600.13.10.1 | SUSE-SU-2025:0616-1 |
| SUSE | Linux Enterprise Module for Legacy 15 SP6 | postgresql15 | 15.12-150600.16.14.1 | SUSE-SU-2025:0614-1 |
| SUSE | Linux Enterprise Module for Legacy 15 SP6, Linux Enterprise Module for Package Hub 15 SP6 | postgresql14 | 14.17-150600.16.14.1 | SUSE-SU-2025:0631-1 |
| SUSE | Linux Enterprise Module for Legacy 15 SP7 | postgresql15 | 15.12-150600.16.14.1 | SUSE-SU-2025:00614-1 |
| SUSE | Linux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5 | postgresql13 | 13.20-3.60.1 | SUSE-SU-2025:0606-1 |
| SUSE | Linux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5 | postgresql14 | 14.17-3.54.1 | SUSE-SU-2025:0615-1 |
| 3 more for SUSE in the JSON and on SUSE's page. | ||||
| openSUSE | Leap 15.6 | postgresql13 | 13.20-150600.14.5.2 | SUSE-SU-2025:0737-1 |
| openSUSE | Leap 15.6 | postgresql14 | 14.17-150600.16.14.1 | SUSE-SU-2025:0631-1 |
| openSUSE | Leap 15.6 | postgresql15 | 15.12-150600.16.14.1 | SUSE-SU-2025:0614-1 |
| openSUSE | Leap 15.6 | postgresql16 | 16.8-150600.16.15.1 | SUSE-SU-2025:0635-1 |
| openSUSE | Leap 15.6 | postgresql17 | 17.4-150600.13.10.1 | SUSE-SU-2025:0616-1 |
| openSUSE | Tumbleweed | postgresql13 | 13.19-1.1 | openSUSE-SU-2025:14805-1 |
| openSUSE | Tumbleweed | postgresql14 | 14.16-1.1 | openSUSE-SU-2025:14806-1 |
| openSUSE | Tumbleweed | postgresql15 | 15.11-1.1 | openSUSE-SU-2025:14807-1 |
| openSUSE | Tumbleweed | postgresql16 | 16.7-1.1 | openSUSE-SU-2025:14808-1 |
| openSUSE | Tumbleweed | postgresql17 | 17.3-1.1 | openSUSE-SU-2025:14810-1 |
| openSUSE | Tumbleweed | postgresql18 | 18.7-1.1 | openSUSE-SU-2026:12654-1 |
| AlmaLinux | 8 | libpq, libpq-devel | 13.20-1.el8_10 | ALSA-2025:1737 |
| AlmaLinux | 8 | pg_repack | 1.4.6-3.module_el8.6.0+2760+1746ec94 | ALSA-2025:1736 |
| AlmaLinux | 8 | pg_repack | 1.4.6-3.module_el8.9.0+3704+f1f917ce | ALSA-2025:1736 ALSA-2025:3082 |
| AlmaLinux | 8 | pg_repack | 1.4.8-1.module_el8.10.0+3798+606ebb9f | ALSA-2025:1739 |
| AlmaLinux | 8 | pg_repack | 1.4.8-1.module_el8.9.0+3706+885c732e | ALSA-2025:1739 |
| AlmaLinux | 8 | pg_repack | 1.5.1-1.module_el8.10.0+3930+ecf33554 | ALSA-2025:1740 |
| AlmaLinux | 8 | pgaudit | 1.4.0-7.module_el8.10.0+3889+48cb11fb.alma.1 | ALSA-2025:3082 |
| AlmaLinux | 8 | pgaudit | 1.4.0-7.module_el8.9.0+3740+0e74851f.alma.1 | ALSA-2025:3082 |
| AlmaLinux | 8 | pgaudit | 1.5.0-1.module_el8.6.0+2760+1746ec94 | ALSA-2025:1736 |
| AlmaLinux | 8 | pgaudit | 1.5.0-1.module_el8.6.0+3095+ee60d910 | ALSA-2025:1736 |
| AlmaLinux | 8 | pgaudit | 1.7.0-1.module_el8.9.0+3706+885c732e | ALSA-2025:1739 |
| AlmaLinux | 8 | pgaudit | 16.0-1.module_el8.10.0+3798+606ebb9f | ALSA-2025:1740 |
| 21 more for AlmaLinux in the JSON. | ||||
| Rocky Linux | 8 | libpq | 0:13.20-1.el8_10 | RLSA-2025:1737 |
| Rocky Linux | 8 | pg_repack | 0:1.4.6-3.module+el8.10.0+1862+29bef648 | RLSA-2025:1736 RLSA-2025:3082 |
| Rocky Linux | 8 | pg_repack | 0:1.4.6-3.module+el8.9.0+1594+4a6adae9 | RLSA-2025:3082 |
| Rocky Linux | 8 | pg_repack | 0:1.4.6-3.module+el8.9.0+1603+444d1b54 | RLSA-2025:3082 |
| Rocky Linux | 8 | pg_repack | 0:1.4.8-1.module+el8.10.0+1622+bd25b19c | RLSA-2025:1739 |
| Rocky Linux | 8 | pg_repack | 0:1.4.8-1.module+el8.10.0+1858+fcc46a79 | RLSA-2025:1739 |
| Rocky Linux | 8 | pg_repack | 0:1.4.8-1.module+el8.9.0+1525+fc91df60 | RLSA-2025:1739 |
| Rocky Linux | 8 | pg_repack | 0:1.5.1-1.module+el8.10.0+1900+d7340343 | RLSA-2025:1740 |
| Rocky Linux | 8 | pgaudit | 0:1.4.0-7.module+el8.9.0+1735+a332307b | RLSA-2025:3082 |
| Rocky Linux | 8 | pgaudit | 0:1.5.0-1.module+el8.9.0+1594+4a6adae9 | RLSA-2025:1736 |
| Rocky Linux | 8 | pgaudit | 0:1.7.0-1.module+el8.9.0+1525+fc91df60 | RLSA-2025:1739 |
| Rocky Linux | 8 | pgaudit | 0:16.0-1.module+el8.10.0+1622+bd25b19c | RLSA-2025:1740 |
| 22 more for Rocky Linux in the JSON. | ||||
| Alpine | v3.18, v3.19 | postgresql13 | 13.20-r0 | ALPINE-CVE-2025-1094 |
| Alpine | v3.18, v3.19, v3.20 | postgresql14 | 14.17-r0 | ALPINE-CVE-2025-1094 |
| Alpine | v3.18, v3.19, v3.20 and 2 more | postgresql15 | 15.11-r0 | ALPINE-CVE-2025-1094 |
| Alpine | v3.19, v3.20, v3.21 and 3 more | postgresql16 | 16.8-r0 | ALPINE-CVE-2025-1094 |
| Alpine | v3.21, v3.22, v3.23 and 1 more | postgresql17 | 17.4-r0 | ALPINE-CVE-2025-1094 |
| Azure Linux | 2 | postgresql | 14.16-1 | AZL-56791 |
| Azure Linux | 3 | postgresql | 16.7-1 | AZL-56732 |
| Alpaquita | 23 | postgresql15 | 15.11-r0 | BELL-CVE-2025-1094 |
| Alpaquita | stream | postgresql17 | 17.4-r0 | BELL-CVE-2025-1094 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.
Red Hat rates this Important.
This vulnerability is marked as Important because it not only enables SQL injection but also allows arbitrary code execution (ACE) through PostgreSQL’s psql interactive tool. The flaw arises from improper neutralization of malformed UTF-8 sequences, which can bypass PostgreSQL’s escaping functions, leading to successful injection attacks. What elevates its severity is psql's support for meta-commands, specifically the ! command, which allows execution of arbitrary shell commands on the host system.
Even when untrusted input is correctly escaped (e.g., via pg_escape_string), an attacker can craft invalid UTF-8 characters containing raw bytes like 0x27 (a single quote), causing psql to misinterpret the SQL statement’s structure. This allows splitting a single query into multiple statements, enabling unauthenticated attackers to execute arbitrary SQL meta-commands (e.g., \! <OS command>) or inject malicious SQL.
To mitigate, apply PostgreSQL patches once available. Until then:
1. Validate UTF-8 encoding: Reject inputs containing invalid UTF-8 sequences before passing to psql.
2. Avoid dynamic SQL: Use parameterized queries or ORM frameworks to minimize direct psql usage with raw input.
3. Restrict psql privileges: Limit OS-level permissions for the PostgreSQL user to reduce RCE impact.
4. Monitor logs: Flag repeated invalid byte sequence for encoding "UTF8" errors, which may indicate exploitation attempts.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 7 Extended Lifecycle Support | postgresql-0:9.2.24-9.el7_9.3 | Fixed 2025-04-17 | RHSA-2025:3978 |
| Red Hat Enterprise Linux 8 | postgresql:13-8100020250219110026.489197e6 | Fixed 2025-02-20 | RHSA-2025:1736 |
| Red Hat Enterprise Linux 8 | libpq-0:13.20-1.el8_10 | Fixed 2025-02-20 | RHSA-2025:1737 |
| Red Hat Enterprise Linux 8 | postgresql:15-8100020250218154242.489197e6 | Fixed 2025-02-20 | RHSA-2025:1739 |
| Red Hat Enterprise Linux 8 | postgresql:16-8100020250218110357.489197e6 | Fixed 2025-02-20 | RHSA-2025:1740 |
| Red Hat Enterprise Linux 8 | postgresql:12-8100020250319175311.489197e6 | Fixed 2025-03-20 | RHSA-2025:3082 |
| Red Hat Enterprise Linux 8.2 Advanced Update Support | libpq-0:12.7-1.el8_2.2 | Fixed 2025-02-20 | RHSA-2025:1720 |
| Red Hat Enterprise Linux 8.2 Advanced Update Support | postgresql:12-8020020250318123402.4cda2c84 | Fixed 2025-03-20 | RHSA-2025:3063 |
| Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | postgresql:13-8040020250218192842.522a0ee4 | Fixed 2025-02-20 | RHSA-2025:1724 |
| Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | libpq-0:13.20-1.el8_4 | Fixed 2025-02-20 | RHSA-2025:1735 |
| Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | postgresql:12-8040020250318163425.522a0ee4 | Fixed 2025-03-20 | RHSA-2025:3062 |
| Red Hat Enterprise Linux 8.4 Telecommunications Update Service | postgresql:13-8040020250218192842.522a0ee4 | Fixed 2025-02-20 | RHSA-2025:1724 |
| Red Hat Enterprise Linux 8.4 Telecommunications Update Service | libpq-0:13.20-1.el8_4 | Fixed 2025-02-20 | RHSA-2025:1735 |
| Red Hat Enterprise Linux 8.4 Telecommunications Update Service | postgresql:12-8040020250318163425.522a0ee4 | Fixed 2025-03-20 | RHSA-2025:3062 |
| Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions | postgresql:13-8040020250218192842.522a0ee4 | Fixed 2025-02-20 | RHSA-2025:1724 |
| Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions | libpq-0:13.20-1.el8_4 | Fixed 2025-02-20 | RHSA-2025:1735 |
| Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions | postgresql:12-8040020250318163425.522a0ee4 | Fixed 2025-03-20 | RHSA-2025:3062 |
| Red Hat Enterprise Linux 10 | libpq | Not affected | |
| Red Hat Enterprise Linux 10 | postgresql16 | Not affected | |
| Red Hat Enterprise Linux 6 | postgresql | Out of support scope | |
| 26 more in the JSON and on Red Hat's page. | |||
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-1094.
Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.
Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.