{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-8715","id":"CVE-2025-8715","title":"PostgreSQL pg_dump newline in object name executes arbitrary code in psql client and in restore target server","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 ","descriptionLong":"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.","published":"2025-08-14T13:00:07.753Z","updated":"2026-06-17T10:07:29.680Z","reserved":"2025-08-07T16:39:47.692Z","status":"Deferred","rejected":false,"assigner":"PostgreSQL","metric":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"PostgreSQL"},"metrics":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"PostgreSQL"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007"}],"rating":"high","products":["PostgreSQL"],"affectedProducts":[{"vendor":"n/a","product":"PostgreSQL","defaultStatus":"unaffected","versions":[{"lessThan":"17.6","status":"affected","version":"17","versionType":"rpm"},{"lessThan":"16.10","status":"affected","version":"16","versionType":"rpm"},{"lessThan":"15.14","status":"affected","version":"15","versionType":"rpm"},{"lessThan":"14.19","status":"affected","version":"14","versionType":"rpm"},{"lessThan":"13.22","status":"affected","version":"11.20","versionType":"rpm"}],"platforms":[]}],"packages":[],"cwes":["CWE-93"],"aliases":["BIT-postgresql-2025-8715"],"references":[{"url":"https://www.postgresql.org/support/security/CVE-2025-8715/","tags":["web"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00493,"epssPercentile":0.43102,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-8715","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-8715","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-8715","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-8715","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["postgresql"],"critical":[],"attention":null}