{"answers":{"affected":"1 open source package ship an affected version, including postgresql.","exploited":"There is no known exploitation of CVE-2025-8715 in the wild and no public exploit code.","fix":"Upgrade postgresql to a fixed version for your release line: 13.22.0, 14.19.0, 15.14.0 or 16.10.0.","what":"CVE-2025-8715 is a high-severity code injection vulnerability in PostgreSQL, published on 14 Aug 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-8715 and fix it if it is affected.\n\nWhat it is: CVE-2025-8715 is a high-severity code injection vulnerability in PostgreSQL, published on 14 Aug 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2025-8715 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- postgresql (Bitnami): affected from 11.20.0; fixed in 13.22.0, 14.19.0, 15.14.0, 16.10.0, 17.6.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-8715/ (Markdown: https://insights.sbomify.com/CVE-2025-8715/index.md)","id":"CVE-2025-8715","markdown":"https://insights.sbomify.com/CVE-2025-8715/index.md","name":"CVE-2025-8715","record":{"aliases":["ALPINE-CVE-2025-8715","AZL-66306","AZL-66327","BELL-CVE-2025-8715","BIT-postgresql-2025-8715","CLEANSTART-2026-NE41969","DEBIAN-CVE-2025-8715","ECHO-b8e7-d561-1eb4","GHSA-xh8r-9824-53cf","MINI-2hv6-wxj6-5gr8","MINI-77pv-884f-4vxr","MINI-c7hx-2v4g-457j","MINI-gr55-w3v3-x59r","MINI-q893-q34w-5643","RHSA-2025:15115","UBUNTU-CVE-2025-8715"],"analysis":{"component_type":"database","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"PostgreSQL database","requires_auth":"none","summary":"Attacker injects code via object names in pg_dump, enabling arbitrary code execution on the client and superuser SQL injection on the restore target.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"PostgreSQL","cpe":[],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-93","name":"Improper Neutralization of CRLF Sequences"}],"description":"Improper neutralization of newlines in pg_dump in PostgreSQL allows a user of the origin server to inject arbitrary code for restore-time execution as the client operating system account running psql to restore the dump, via psql meta-commands inside a purpose-crafted object name.  The same attacks can achieve SQL injection as a superuser of the restore target server.  pg_dumpall, pg_restore, and pg_upgrade are also affected.  Versions before PostgreSQL 17.6, 16.10, 15.14, 14.19, and 13.22 are affected.  Versions before 11.20 are unaffected.  CVE-2012-0868 had fixed this class of problem, but version 11.20 reintroduced it.","ecosystems":["Bitnami","Red Hat:enterprise_linux:8::appstream"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"PostgreSQL pg_dump newline in object name executes arbitrary code in psql client and in restore target server","id":"CVE-2025-8715","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"code_injection","year":"2025"},"n_packages":35,"n_references":1,"next":{"headline":"Cache exploitation vulnerability","id":"CVE-2025-8716"},"packages":[{"ecosystem":"Bitnami","fixed":["13.22.0","14.19.0","15.14.0","16.10.0","17.6.0"],"introduced":["11.20.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-8715"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.4.6-3.module+el8.9.0+19330+c97ddbdf"],"introduced":["0"],"last_affected":[],"package":"pg_repack","purl":"pkg:rpm/redhat/pg_repack","source":"RHSA-2025:15115"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.4.6-3.module+el8.9.0+19330+c97ddbdf"],"introduced":["0"],"last_affected":[],"package":"pg_repack-debuginfo","purl":"pkg:rpm/redhat/pg_repack-debuginfo","source":"RHSA-2025:15115"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.4.6-3.module+el8.9.0+19330+c97ddbdf"],"introduced":["0"],"last_affected":[],"package":"pg_repack-debugsource","purl":"pkg:rpm/redhat/pg_repack-debugsource","source":"RHSA-2025:15115"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.4.0-7.module+el8.10.0+22214+9beb89d6"],"introduced":["0"],"last_affected":[],"package":"pgaudit","purl":"pkg:rpm/redhat/pgaudit","source":"RHSA-2025:15115"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.4.0-7.module+el8.10.0+22214+9beb89d6"],"introduced":["0"],"last_affected":[],"package":"pgaudit-debuginfo","purl":"pkg:rpm/redhat/pgaudit-debuginfo","source":"RHSA-2025:15115"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.4.0-7.module+el8.10.0+22214+9beb89d6"],"introduced":["0"],"last_affected":[],"package":"pgaudit-debugsource","purl":"pkg:rpm/redhat/pgaudit-debugsource","source":"RHSA-2025:15115"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:0.10.0-2.module+el8.9.0+19330+c97ddbdf"],"introduced":["0"],"last_affected":[],"package":"postgres-decoderbufs","purl":"pkg:rpm/redhat/postgres-decoderbufs","source":"RHSA-2025:15115"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:0.10.0-2.module+el8.9.0+19330+c97ddbdf"],"introduced":["0"],"last_affected":[],"package":"postgres-decoderbufs-debuginfo","purl":"pkg:rpm/redhat/postgres-decoderbufs-debuginfo","source":"RHSA-2025:15115"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:0.10.0-2.module+el8.9.0+19330+c97ddbdf"],"introduced":["0"],"last_affected":[],"package":"postgres-decoderbufs-debugsource","purl":"pkg:rpm/redhat/postgres-decoderbufs-debugsource","source":"RHSA-2025:15115"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:12.22-5.module+el8.10.0+23469+cd66ea30"],"introduced":["0"],"last_affected":[],"package":"postgresql","purl":"pkg:rpm/redhat/postgresql","source":"RHSA-2025:15115"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:12.22-5.module+el8.10.0+23469+cd66ea30"],"introduced":["0"],"last_affected":[],"package":"postgresql-contrib","purl":"pkg:rpm/redhat/postgresql-contrib","source":"RHSA-2025:15115"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:12.22-5.module+el8.10.0+23469+cd66ea30"],"introduced":["0"],"last_affected":[],"package":"postgresql-contrib-debuginfo","purl":"pkg:rpm/redhat/postgresql-contrib-debuginfo","source":"RHSA-2025:15115"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:12.22-5.module+el8.10.0+23469+cd66ea30"],"introduced":["0"],"last_affected":[],"package":"postgresql-debuginfo","purl":"pkg:rpm/redhat/postgresql-debuginfo","source":"RHSA-2025:15115"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:12.22-5.module+el8.10.0+23469+cd66ea30"],"introduced":["0"],"last_affected":[],"package":"postgresql-debugsource","purl":"pkg:rpm/redhat/postgresql-debugsource","source":"RHSA-2025:15115"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:12.22-5.module+el8.10.0+23469+cd66ea30"],"introduced":["0"],"last_affected":[],"package":"postgresql-docs","purl":"pkg:rpm/redhat/postgresql-docs","source":"RHSA-2025:15115"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:12.22-5.module+el8.10.0+23469+cd66ea30"],"introduced":["0"],"last_affected":[],"package":"postgresql-docs-debuginfo","purl":"pkg:rpm/redhat/postgresql-docs-debuginfo","source":"RHSA-2025:15115"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:12.22-5.module+el8.10.0+23469+cd66ea30"],"introduced":["0"],"last_affected":[],"package":"postgresql-plperl","purl":"pkg:rpm/redhat/postgresql-plperl","source":"RHSA-2025:15115"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:12.22-5.module+el8.10.0+23469+cd66ea30"],"introduced":["0"],"last_affected":[],"package":"postgresql-plperl-debuginfo","purl":"pkg:rpm/redhat/postgresql-plperl-debuginfo","source":"RHSA-2025:15115"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:12.22-5.module+el8.10.0+23469+cd66ea30"],"introduced":["0"],"last_affected":[],"package":"postgresql-plpython3","purl":"pkg:rpm/redhat/postgresql-plpython3","source":"RHSA-2025:15115"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:12.22-5.module+el8.10.0+23469+cd66ea30"],"introduced":["0"],"last_affected":[],"package":"postgresql-plpython3-debuginfo","purl":"pkg:rpm/redhat/postgresql-plpython3-debuginfo","source":"RHSA-2025:15115"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:12.22-5.module+el8.10.0+23469+cd66ea30"],"introduced":["0"],"last_affected":[],"package":"postgresql-pltcl","purl":"pkg:rpm/redhat/postgresql-pltcl","source":"RHSA-2025:15115"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:12.22-5.module+el8.10.0+23469+cd66ea30"],"introduced":["0"],"last_affected":[],"package":"postgresql-pltcl-debuginfo","purl":"pkg:rpm/redhat/postgresql-pltcl-debuginfo","source":"RHSA-2025:15115"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:12.22-5.module+el8.10.0+23469+cd66ea30"],"introduced":["0"],"last_affected":[],"package":"postgresql-server","purl":"pkg:rpm/redhat/postgresql-server","source":"RHSA-2025:15115"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:12.22-5.module+el8.10.0+23469+cd66ea30"],"introduced":["0"],"last_affected":[],"package":"postgresql-server-debuginfo","purl":"pkg:rpm/redhat/postgresql-server-debuginfo","source":"RHSA-2025:15115"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:12.22-5.module+el8.10.0+23469+cd66ea30"],"introduced":["0"],"last_affected":[],"package":"postgresql-server-devel","purl":"pkg:rpm/redhat/postgresql-server-devel","source":"RHSA-2025:15115"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:12.22-5.module+el8.10.0+23469+cd66ea30"],"introduced":["0"],"last_affected":[],"package":"postgresql-server-devel-debuginfo","purl":"pkg:rpm/redhat/postgresql-server-devel-debuginfo","source":"RHSA-2025:15115"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:12.22-5.module+el8.10.0+23469+cd66ea30"],"introduced":["0"],"last_affected":[],"package":"postgresql-static","purl":"pkg:rpm/redhat/postgresql-static","source":"RHSA-2025:15115"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:12.22-5.module+el8.10.0+23469+cd66ea30"],"introduced":["0"],"last_affected":[],"package":"postgresql-test","purl":"pkg:rpm/redhat/postgresql-test","source":"RHSA-2025:15115"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:12.22-5.module+el8.10.0+23469+cd66ea30"],"introduced":["0"],"last_affected":[],"package":"postgresql-test-debuginfo","purl":"pkg:rpm/redhat/postgresql-test-debuginfo","source":"RHSA-2025:15115"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:12.22-5.module+el8.10.0+23469+cd66ea30"],"introduced":["0"],"last_affected":[],"package":"postgresql-test-rpm-macros","purl":"pkg:rpm/redhat/postgresql-test-rpm-macros","source":"RHSA-2025:15115"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:12.22-5.module+el8.10.0+23469+cd66ea30"],"introduced":["0"],"last_affected":[],"package":"postgresql-upgrade","purl":"pkg:rpm/redhat/postgresql-upgrade","source":"RHSA-2025:15115"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:12.22-5.module+el8.10.0+23469+cd66ea30"],"introduced":["0"],"last_affected":[],"package":"postgresql-upgrade-debuginfo","purl":"pkg:rpm/redhat/postgresql-upgrade-debuginfo","source":"RHSA-2025:15115"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:12.22-5.module+el8.10.0+23469+cd66ea30"],"introduced":["0"],"last_affected":[],"package":"postgresql-upgrade-devel","purl":"pkg:rpm/redhat/postgresql-upgrade-devel","source":"RHSA-2025:15115"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:12.22-5.module+el8.10.0+23469+cd66ea30"],"introduced":["0"],"last_affected":[],"package":"postgresql-upgrade-devel-debuginfo","purl":"pkg:rpm/redhat/postgresql-upgrade-devel-debuginfo","source":"RHSA-2025:15115"}],"prev":{"headline":"PostgreSQL pg_dump lets superuser of origin server execute arbitrary code in psql client","id":"CVE-2025-8714"},"products":["PostgreSQL"],"published":"2025-08-14","related":[],"sources":[{"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":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-02-26","vendors":["n/a"]},"summary":"Attacker injects code via object names in pg_dump, enabling arbitrary code execution on the client and superuser SQL injection on the restore target.","url":"https://insights.sbomify.com/CVE-2025-8715/"}