{"answers":{"affected":"1 open source package ship an affected version, including postgresql.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-1094 exists.","fix":"Upgrade postgresql to a fixed version for your release line: 13.19.0, 14.16.0, 15.11.0 or 16.7.0.","what":"CVE-2025-1094 is a high-severity SQL injection vulnerability in PostgreSQL, published on 13 Feb 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-1094 and fix it if it is affected.\n\nWhat it is: CVE-2025-1094 is a high-severity SQL injection vulnerability in PostgreSQL, published on 13 Feb 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-1094 exists.\n\nAffected packages and fixed versions:\n- postgresql (Bitnami): affected all versions; fixed in 13.19.0, 14.16.0, 15.11.0, 16.7.0, 17.3.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-1094/ (Markdown: https://insights.sbomify.com/CVE-2025-1094/index.md)","id":"CVE-2025-1094","markdown":"https://insights.sbomify.com/CVE-2025-1094/index.md","name":"CVE-2025-1094","record":{"aliases":["ALPINE-CVE-2025-1094","ALSA-2025:1736","ALSA-2025:1737","ALSA-2025:1738","ALSA-2025:1739","ALSA-2025:1740","ALSA-2025:1741","ALSA-2025:1742","ALSA-2025:1743","ALSA-2025:3082","AZL-56732","AZL-56791","BELL-CVE-2025-1094","BIT-postgresql-2025-1094","CLEANSTART-2026-ZC09647","CLSA-2025-1742471100","CLSA-2025-1742471210","CLSA-2025-1742924432","CLSA-2025-1761323193","CLSA-2025-1764858353","CLSA-2025-1764868292","DEBIAN-CVE-2025-1094","DLA-4052-1","DLA-4052-2","ECHO-0e2b-89cf-14bc","GHSA-mhw9-x46c-v6q4","MGASA-2025-0064","MINI-37m4-7jc9-882v","MINI-4jfr-pvvr-xx6h","MINI-jm43-hwm4-rgm8","MINI-w7m6-fc7p-6j27","MINI-xmrh-g664-jm25","OESA-2025-1152","OESA-2025-1153","OESA-2025-1154","OESA-2025-1155","OESA-2025-1227","OESA-2025-1228","OESA-2025-1229","OESA-2025-1230","RHSA-2025:1720","RHSA-2025:1721","RHSA-2025:1722","RHSA-2025:1723","RHSA-2025:1724","RHSA-2025:1725","RHSA-2025:1726","RHSA-2025:1727","RHSA-2025:1728","RHSA-2025:1729","RHSA-2025:1730","RHSA-2025:1731","RHSA-2025:1732","RHSA-2025:1733","RHSA-2025:1735","RHSA-2025:1736","RHSA-2025:1737","RHSA-2025:1738","RHSA-2025:1739","RHSA-2025:1740","RHSA-2025:1741","RHSA-2025:1742","RHSA-2025:1743","RHSA-2025:1744","RHSA-2025:1745","RHSA-2025:3050","RHSA-2025:3062","RHSA-2025:3063","RHSA-2025:3064","RHSA-2025:3082","RHSA-2025:3978","RLSA-2025:1736","RLSA-2025:1737","RLSA-2025:1738","RLSA-2025:1739","RLSA-2025:1740","RLSA-2025:1741","RLSA-2025:1742","RLSA-2025:1743","RLSA-2025:3082","SUSE-SU-2025:00614-1","SUSE-SU-2025:0606-1","SUSE-SU-2025:0614-1","SUSE-SU-2025:0615-1","SUSE-SU-2025:0616-1","SUSE-SU-2025:0618-1","SUSE-SU-2025:0619-1","SUSE-SU-2025:0631-1","SUSE-SU-2025:0632-1","SUSE-SU-2025:0633-1","SUSE-SU-2025:0634-1","SUSE-SU-2025:0635-1","SUSE-SU-2025:0636-1","SUSE-SU-2025:0637-1","SUSE-SU-2025:0655-1","SUSE-SU-2025:0737-1","UBUNTU-CVE-2025-1094","USN-7315-1","USN-7315-2","openSUSE-SU-2025:14805-1","openSUSE-SU-2025:14806-1","openSUSE-SU-2025:14807-1","openSUSE-SU-2025:14808-1","openSUSE-SU-2025:14810-1"],"analysis":{"component_type":"database","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":true,"product_category":"PostgreSQL database","requires_auth":"none","summary":"Attackers can achieve SQL injection via improper quoting in libpq functions or CLI tools under specific encoding configurations, requiring upgrades.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"PostgreSQL","cpe":[],"cvss":{"score":8.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-149","name":"Improper Neutralization of Quoting Syntax"}],"description":"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 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.","ecosystems":["AlmaLinux:8","AlmaLinux:9","Bitnami","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:9::appstream","Red Hat:enterprise_linux:9::crb","Red Hat:rhel_aus:8.2::appstream","Red Hat:rhel_aus:8.4::appstream","Red Hat:rhel_aus:8.6::appstream","Red Hat:rhel_e4s:8.4::appstream","Red Hat:rhel_e4s:8.6::appstream","Red Hat:rhel_e4s:9.0::appstream","Red Hat:rhel_els:7","Red Hat:rhel_eus:8.8::appstream","Red Hat:rhel_eus:9.2::appstream","Red Hat:rhel_eus:9.2::crb","Red Hat:rhel_eus:9.4::appstream","Red Hat:rhel_eus:9.4::crb","Red Hat:rhel_tus:8.4::appstream","Red Hat:rhel_tus:8.6::appstream","Rocky Linux:8","Rocky Linux:9","SUSE:Enterprise Storage 7.1","SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS","SUSE:Linux Enterprise Module for Basesystem 15 SP6","SUSE:Linux Enterprise Module for Legacy 15 SP6","SUSE:Linux Enterprise Module for Legacy 15 SP7","SUSE:Linux Enterprise Module for Package Hub 15 SP6","SUSE:Linux Enterprise Module for Server Applications 15 SP6","SUSE:Linux Enterprise Server 12 SP5-LTSS","SUSE:Linux Enterprise Server 15 SP3-LTSS","SUSE:Linux Enterprise Server 15 SP4-LTSS","SUSE:Linux Enterprise Server 15 SP5-LTSS","SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 15 SP3","SUSE:Linux Enterprise Server for SAP Applications 15 SP4","SUSE:Linux Enterprise Server for SAP Applications 15 SP5","SUSE:Manager Proxy 4.3","SUSE:Manager Server 4.3","openSUSE:Leap 15.6","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":"2024-12-16","github_poc":6,"max_poc_stars":38,"metasploit":1,"nuclei":0,"refs":[{"date":"2025-02-27T11:08:10Z","kind":"github_poc","ref":"https://github.com/soltanali0/CVE-2025-1094-Exploit","stars":38,"title":"WebSocket and SQL Injection Exploit Script"},{"date":"2025-03-14T20:21:57Z","kind":"github_poc","ref":"https://github.com/ishwardeepp/CVE-2025-1094-PoC-Postgre-SQLi","stars":6,"title":null},{"date":"2026-09-04T20:22:29Z","kind":"github_poc","ref":"https://github.com/skraft9/CVE-2024-12356","stars":2,"title":"Unauthenticated RCE detector + RCA for BeyondTrust Remote Support / PRA (CVE-2024-12356 + CVE-2025-1094)"},{"date":"2025-06-18T15:18:33Z","kind":"github_poc","ref":"https://github.com/aninfosec/CVE-2025-1094","stars":1,"title":"It is an input sanitization flaw caused by an encoding mismatch, allowing crafted input to bypass filters. If a server is vulnerable, an attacker can inject malicious SQL that the backend executes."},{"date":"2024-12-16","kind":"metasploit","ref":"exploit/linux/http/beyondtrust_pra_rs_unauth_rce","stars":null,"title":"BeyondTrust Privileged Remote Access (PRA) and Remote Support (RS) unauthenticated Remote Code Execution"},{"date":"2025-10-19T18:08:06Z","kind":"github_poc","ref":"https://github.com/PinkArmor/CVE-2025-1094-Lab-Setup","stars":0,"title":null},{"date":"2026-05-10T11:48:28Z","kind":"github_poc","ref":"https://github.com/TranDongA3/POC-CVE-2025-1094","stars":0,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"PostgreSQL quoting APIs miss neutralizing quoting syntax in text that fails encoding validation","id":"CVE-2025-1094","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"sql_injection","year":"2025"},"n_packages":1336,"n_references":1,"next":{"headline":"IBM Personal Communications command execution","id":"CVE-2025-1095"},"packages":[{"ecosystem":"Bitnami","fixed":["13.19.0","14.16.0","15.11.0","16.7.0","17.3.0"],"introduced":["0","14.0.0","15.0.0","16.0.0","17.0.0"],"last_affected":[],"package":"postgresql","purl":"pkg:bitnami/postgresql","source":"BIT-postgresql-2025-1094"},{"ecosystem":"AlmaLinux:8","fixed":["13.20-1.el8_10"],"introduced":["0"],"last_affected":[],"package":"libpq","purl":"pkg:rpm/almalinux/libpq","source":"ALSA-2025:1737"},{"ecosystem":"AlmaLinux:8","fixed":["13.20-1.el8_10"],"introduced":["0"],"last_affected":[],"package":"libpq-devel","purl":"pkg:rpm/almalinux/libpq-devel","source":"ALSA-2025:1737"},{"ecosystem":"AlmaLinux:8","fixed":["1.4.6-3.module_el8.6.0+2760+1746ec94"],"introduced":["0"],"last_affected":[],"package":"pg_repack","purl":"pkg:rpm/almalinux/pg_repack","source":"ALSA-2025:1736"},{"ecosystem":"AlmaLinux:8","fixed":["1.4.6-3.module_el8.9.0+3704+f1f917ce"],"introduced":["0"],"last_affected":[],"package":"pg_repack","purl":"pkg:rpm/almalinux/pg_repack","source":"ALSA-2025:1736"},{"ecosystem":"AlmaLinux:8","fixed":["1.4.6-3.module_el8.9.0+3704+f1f917ce"],"introduced":["0"],"last_affected":[],"package":"pg_repack","purl":"pkg:rpm/almalinux/pg_repack","source":"ALSA-2025:3082"},{"ecosystem":"AlmaLinux:8","fixed":["1.4.8-1.module_el8.10.0+3798+606ebb9f"],"introduced":["0"],"last_affected":[],"package":"pg_repack","purl":"pkg:rpm/almalinux/pg_repack","source":"ALSA-2025:1739"},{"ecosystem":"AlmaLinux:8","fixed":["1.4.8-1.module_el8.9.0+3706+885c732e"],"introduced":["0"],"last_affected":[],"package":"pg_repack","purl":"pkg:rpm/almalinux/pg_repack","source":"ALSA-2025:1739"},{"ecosystem":"AlmaLinux:8","fixed":["1.5.1-1.module_el8.10.0+3930+ecf33554"],"introduced":["0"],"last_affected":[],"package":"pg_repack","purl":"pkg:rpm/almalinux/pg_repack","source":"ALSA-2025:1740"},{"ecosystem":"AlmaLinux:8","fixed":["1.4.0-7.module_el8.10.0+3889+48cb11fb.alma.1"],"introduced":["0"],"last_affected":[],"package":"pgaudit","purl":"pkg:rpm/almalinux/pgaudit","source":"ALSA-2025:3082"},{"ecosystem":"AlmaLinux:8","fixed":["1.4.0-7.module_el8.9.0+3740+0e74851f.alma.1"],"introduced":["0"],"last_affected":[],"package":"pgaudit","purl":"pkg:rpm/almalinux/pgaudit","source":"ALSA-2025:3082"},{"ecosystem":"AlmaLinux:8","fixed":["1.5.0-1.module_el8.6.0+2760+1746ec94"],"introduced":["0"],"last_affected":[],"package":"pgaudit","purl":"pkg:rpm/almalinux/pgaudit","source":"ALSA-2025:1736"},{"ecosystem":"AlmaLinux:8","fixed":["1.5.0-1.module_el8.6.0+3095+ee60d910"],"introduced":["0"],"last_affected":[],"package":"pgaudit","purl":"pkg:rpm/almalinux/pgaudit","source":"ALSA-2025:1736"},{"ecosystem":"AlmaLinux:8","fixed":["1.7.0-1.module_el8.9.0+3706+885c732e"],"introduced":["0"],"last_affected":[],"package":"pgaudit","purl":"pkg:rpm/almalinux/pgaudit","source":"ALSA-2025:1739"},{"ecosystem":"AlmaLinux:8","fixed":["16.0-1.module_el8.10.0+3798+606ebb9f"],"introduced":["0"],"last_affected":[],"package":"pgaudit","purl":"pkg:rpm/almalinux/pgaudit","source":"ALSA-2025:1740"},{"ecosystem":"AlmaLinux:8","fixed":["0.10.0-2.module_el8.6.0+2760+1746ec94"],"introduced":["0"],"last_affected":[],"package":"postgres-decoderbufs","purl":"pkg:rpm/almalinux/postgres-decoderbufs","source":"ALSA-2025:1736"},{"ecosystem":"AlmaLinux:8","fixed":["0.10.0-2.module_el8.6.0+3095+ee60d910"],"introduced":["0"],"last_affected":[],"package":"postgres-decoderbufs","purl":"pkg:rpm/almalinux/postgres-decoderbufs","source":"ALSA-2025:1736"},{"ecosystem":"AlmaLinux:8","fixed":["0.10.0-2.module_el8.9.0+3704+f1f917ce"],"introduced":["0"],"last_affected":[],"package":"postgres-decoderbufs","purl":"pkg:rpm/almalinux/postgres-decoderbufs","source":"ALSA-2025:1736"},{"ecosystem":"AlmaLinux:8","fixed":["0.10.0-2.module_el8.9.0+3704+f1f917ce"],"introduced":["0"],"last_affected":[],"package":"postgres-decoderbufs","purl":"pkg:rpm/almalinux/postgres-decoderbufs","source":"ALSA-2025:3082"},{"ecosystem":"AlmaLinux:8","fixed":["1.9.7-1.Final.module_el8.9.0+3706+885c732e"],"introduced":["0"],"last_affected":[],"package":"postgres-decoderbufs","purl":"pkg:rpm/almalinux/postgres-decoderbufs","source":"ALSA-2025:1739"},{"ecosystem":"AlmaLinux:8","fixed":["2.4.0-1.Final.module_el8.10.0+3798+606ebb9f"],"introduced":["0"],"last_affected":[],"package":"postgres-decoderbufs","purl":"pkg:rpm/almalinux/postgres-decoderbufs","source":"ALSA-2025:1740"},{"ecosystem":"AlmaLinux:8","fixed":["12.22-3.module_el8.10.0+3971+15b81305"],"introduced":["0"],"last_affected":[],"package":"postgresql","purl":"pkg:rpm/almalinux/postgresql","source":"ALSA-2025:3082"},{"ecosystem":"AlmaLinux:8","fixed":["13.20-1.module_el8.10.0+3967+334cd65a"],"introduced":["0"],"last_affected":[],"package":"postgresql","purl":"pkg:rpm/almalinux/postgresql","source":"ALSA-2025:1736"},{"ecosystem":"AlmaLinux:8","fixed":["15.12-1.module_el8.10.0+3968+5ca3d05a"],"introduced":["0"],"last_affected":[],"package":"postgresql","purl":"pkg:rpm/almalinux/postgresql","source":"ALSA-2025:1739"},{"ecosystem":"AlmaLinux:8","fixed":["16.8-1.module_el8.10.0+3969+2c3c9353"],"introduced":["0"],"last_affected":[],"package":"postgresql","purl":"pkg:rpm/almalinux/postgresql","source":"ALSA-2025:1740"},{"ecosystem":"AlmaLinux:8","fixed":["12.22-3.module_el8.10.0+3971+15b81305"],"introduced":["0"],"last_affected":[],"package":"postgresql-contrib","purl":"pkg:rpm/almalinux/postgresql-contrib","source":"ALSA-2025:3082"},{"ecosystem":"AlmaLinux:8","fixed":["13.20-1.module_el8.10.0+3967+334cd65a"],"introduced":["0"],"last_affected":[],"package":"postgresql-contrib","purl":"pkg:rpm/almalinux/postgresql-contrib","source":"ALSA-2025:1736"},{"ecosystem":"AlmaLinux:8","fixed":["15.12-1.module_el8.10.0+3968+5ca3d05a"],"introduced":["0"],"last_affected":[],"package":"postgresql-contrib","purl":"pkg:rpm/almalinux/postgresql-contrib","source":"ALSA-2025:1739"},{"ecosystem":"AlmaLinux:8","fixed":["16.8-1.module_el8.10.0+3969+2c3c9353"],"introduced":["0"],"last_affected":[],"package":"postgresql-contrib","purl":"pkg:rpm/almalinux/postgresql-contrib","source":"ALSA-2025:1740"},{"ecosystem":"AlmaLinux:8","fixed":["12.22-3.module_el8.10.0+3971+15b81305"],"introduced":["0"],"last_affected":[],"package":"postgresql-docs","purl":"pkg:rpm/almalinux/postgresql-docs","source":"ALSA-2025:3082"},{"ecosystem":"AlmaLinux:8","fixed":["13.20-1.module_el8.10.0+3967+334cd65a"],"introduced":["0"],"last_affected":[],"package":"postgresql-docs","purl":"pkg:rpm/almalinux/postgresql-docs","source":"ALSA-2025:1736"},{"ecosystem":"AlmaLinux:8","fixed":["15.12-1.module_el8.10.0+3968+5ca3d05a"],"introduced":["0"],"last_affected":[],"package":"postgresql-docs","purl":"pkg:rpm/almalinux/postgresql-docs","source":"ALSA-2025:1739"},{"ecosystem":"AlmaLinux:8","fixed":["16.8-1.module_el8.10.0+3969+2c3c9353"],"introduced":["0"],"last_affected":[],"package":"postgresql-docs","purl":"pkg:rpm/almalinux/postgresql-docs","source":"ALSA-2025:1740"},{"ecosystem":"AlmaLinux:8","fixed":["12.22-3.module_el8.10.0+3971+15b81305"],"introduced":["0"],"last_affected":[],"package":"postgresql-plperl","purl":"pkg:rpm/almalinux/postgresql-plperl","source":"ALSA-2025:3082"},{"ecosystem":"AlmaLinux:8","fixed":["13.20-1.module_el8.10.0+3967+334cd65a"],"introduced":["0"],"last_affected":[],"package":"postgresql-plperl","purl":"pkg:rpm/almalinux/postgresql-plperl","source":"ALSA-2025:1736"},{"ecosystem":"AlmaLinux:8","fixed":["15.12-1.module_el8.10.0+3968+5ca3d05a"],"introduced":["0"],"last_affected":[],"package":"postgresql-plperl","purl":"pkg:rpm/almalinux/postgresql-plperl","source":"ALSA-2025:1739"},{"ecosystem":"AlmaLinux:8","fixed":["16.8-1.module_el8.10.0+3969+2c3c9353"],"introduced":["0"],"last_affected":[],"package":"postgresql-plperl","purl":"pkg:rpm/almalinux/postgresql-plperl","source":"ALSA-2025:1740"},{"ecosystem":"AlmaLinux:8","fixed":["12.22-3.module_el8.10.0+3971+15b81305"],"introduced":["0"],"last_affected":[],"package":"postgresql-plpython3","purl":"pkg:rpm/almalinux/postgresql-plpython3","source":"ALSA-2025:3082"},{"ecosystem":"AlmaLinux:8","fixed":["13.20-1.module_el8.10.0+3967+334cd65a"],"introduced":["0"],"last_affected":[],"package":"postgresql-plpython3","purl":"pkg:rpm/almalinux/postgresql-plpython3","source":"ALSA-2025:1736"},{"ecosystem":"AlmaLinux:8","fixed":["15.12-1.module_el8.10.0+3968+5ca3d05a"],"introduced":["0"],"last_affected":[],"package":"postgresql-plpython3","purl":"pkg:rpm/almalinux/postgresql-plpython3","source":"ALSA-2025:1739"}],"prev":{"headline":"AIHub \u003c= 1.3.7 - Unauthenticated Arbitrary File Upload in generate_image","id":"CVE-2025-1093"},"products":["PostgreSQL"],"published":"2025-02-13","related":[],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-03-14","vendors":["n/a"]},"summary":"Attackers can achieve SQL injection via improper quoting in libpq functions or CLI tools under specific encoding configurations, requiring upgrades.","url":"https://insights.sbomify.com/CVE-2025-1094/"}